I am looking for a way to execute a JS code block for each game render loop, or screen redraw, or ‘game tick’ (a term used in other game ide’s).
So a 60FPS game would call this 60 times in a second, preferably to execute after all else is done.
Is there an event that covers this ?
I thought about using a timer, but they appear to work in ‘seconds’ only if i am not mistaken.