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.
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.
Here is the quick demonstration video (based on SDL 2) which I created:
http://cache.getlazarus.org/video/bare-cube.mp4
If you're interested in playing around with these type of approach, BareGame is located at github:
https://github.com/sysrpl/Bare.Game
To integrate with Lazarus
open package source/barerun.lpk and compile
then open package tools/design/baredsgn.lpk and install
You can then select "Project | New Project ... | Game Project"
You'll need SDL 2 installed to run game projects.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151128/7e028b0a/attachment.html>
