Best practice for updating mainloop objects in heaps


Is it ready solution for heaps framework to update some game objects? Method mainloop of App registering as single available callback function as hxd.System.setLoop(mainLoop). I’d like to register some of my functions, for example that turns preloader image continuosly. Have I make some sort of “updates controller” or is it present in framework?


Haxe itself has a MainLoop class. Maybe it’s good for your needs?


Thanks, I’ve already made my own singleton update controller that called every tick in main loop.