In my game I currently merge hundreds of sprites into a RenderTarget, then remove the original sprites to save CPU. Could this be used to add/burn new sprites onto the background layer?
But if your sprite brain logic can run independently of the sprite move and collision logic then maybe there is a solution to gain more lua time in the next update - fake threads (it uses the spare time at the end of the events to the next event to run code in a thread, with auto yield) ...
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
Likes: SinisterSoft, totebo
But if your sprite brain logic can run independently of the sprite move and collision logic then maybe there is a solution to gain more lua time in the next update - fake threads (it uses the spare time at the end of the events to the next event to run code in a thread, with auto yield) ...
Likes: totebo
https://deluxepixel.com