Added multithreading to main loop. Also added FPS counter.
Some small changes include introducing position as an attribute of Particle, because previously the position was based on its equivalent GameObject, however any methods involving GameObjects can only be called from the main thread, so the position needs to be sourced from elsewhere.
Added multithreading to main loop. Also added FPS counter.
Some small changes include introducing position as an attribute of Particle, because previously the position was based on its equivalent GameObject, however any methods involving GameObjects can only be called from the main thread, so the position needs to be sourced from elsewhere.