SmallMolecules / small-molecules

1 stars 1 forks source link

#3 main loop threading #15

Closed itbergl closed 3 years ago

itbergl commented 3 years ago

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.