Re: Python, passing objects?

2019-08-25 Thread AudioGames . net Forum — Developers room : nyanchan via Audiogames-reflector
Re: Python, passing objects? Primitives are value-passed and objects are reference-passed. You need to explicitly call copy function in order to duplicate an object. So, as for your question, no. URL: https://forum.audiogames.net/post/457597/#p457597 -- Audiogames-reflector mailing

Re: Python, passing objects?

2019-08-24 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Python, passing objects? That depends on if your passing a reference to an existing class instance, which would have little or no overhead because its no different than passing an array, dictionary, or other variable. If your creating and passing classes every cycle, it depends

Re: Python, passing objects?

2019-08-24 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Python, passing objects? I am not sure you understand my question. What issues, if any, will I have if I start passing around classes to the functions at a constant rate. URL: https://forum.audiogames.net/post/457526/#p457526 -- Audiogames-reflector mailing list Audiogames

Re: Python, passing objects?

2019-08-24 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Python, passing objects? The given example only covers initialization, which only happens once when the object is created. In the case of an update loop that requires an object every loop, it depends on how you wetup the update function to handle the data, or lack thereof, thats sent

Re: Python, passing objects?

2019-08-24 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Python, passing objects? The given example only covers initialization, which only happens once when the object is created. In the case of an update loop that requires an object every loop, it depends on how you setup the update function to handle the data, or lack thereof, thats sent

Python, passing objects?

2019-08-24 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Python, passing objects? So, I have just discovered a wonderful feature of passing objects to methods in python. This would potentially save me some import statements. Trouble is, I don't really know what happens under the hood and how it all impacts performance.consider this:#we'll call