Hi everyone. (And sorry for my english below)
I want to change from canvas to webgl so I am learning pixi.js. But after googling on the world wide web some things are not clear for me.
A couple questions:
-How about the gameloop?
In every example they use requestAnimationFrame or something. I'm used to work with the mainloop.js library which structure is very easy:
begin();update(delta);draw();
Can i use this library with pixijs? Or is it better to use requestAnimationFrame?
And if i use requestAnimationFrame, how about delta time?
Delta time is really important to me because i often make cpu intensive simulations. The framerate will not always be 60 fps.
- What is the best method in pixijs to draw a million of separate pixels on the screen? For example fluid simulations.