craftablescience / ChiraEngine

A customizable MIT-licensed game engine.
https://craftablescience.info/ChiraEngine/
MIT License
33 stars 6 forks source link

Better Game Loop #25

Open craftablescience opened 1 year ago

craftablescience commented 1 year ago

Component to Improve

Core Engine

Describe Your Suggestion

Currently, the "game loop" is that update is called on all entities, then render is called on all entities. This is not a good idea. Use deWITTER's Game Loop to make update and render both run as fast as possible (update should be locked to 60fps).