<div dir="ltr">Some people on the Lazarus forums where discussing frames and time with regards to game development. I decided to create a real quick video demonstrating what I consider how to deal with time.<div><br></div><div>That is, don't use a TTimer, instead use a high performance time function, wrap it in a class, and for the purposes of game dev, you should have separate logic and render thread which are all apart from the message queue (user interface) thread.</div><div><br></div><div>Here is the quick demonstration video (based on SDL 2) which I created:</div><div><br></div><div><a href="http://cache.getlazarus.org/video/bare-cube.mp4">http://cache.getlazarus.org/video/bare-cube.mp4</a><br></div><div><br></div><div>If you're interested in playing around with these type of approach, BareGame is located at github:</div><div><br></div><div><a href="https://github.com/sysrpl/Bare.Game">https://github.com/sysrpl/Bare.Game</a><br></div><div><br></div><div>To integrate with LazarusĀ </div><div><br></div><div>open package source/barerun.lpk and compileĀ </div><div>then open package tools/design/baredsgn.lpk and install</div><div><br></div><div>You can then select "Project | New Project ... | Game Project"</div><div><br></div><div>You'll need SDL 2 installed to run game projects.</div></div>