Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #ludumdare on irc.afternet.org (Info)

Thanks for making Ludum Dare 26 AWESOME! See you in August!

Ludum Dare 26 — April 26-29th, 2013
[ Results: Top 100 Compo, Jam | Top 25 Categories | View My Entry ]
[ View All 2346 Games (Compo Only, Jam Only) | Warmup ]

[ 10 Sec Video Compilation (x3) | 260 Game Video Compilation | IndieCade Deal | Ludum Deals (Unity Deal Ends Soon!) ]


Ticks, Timing and Sleeps oh my!

Posted by
April 16th, 2012 7:13 am

This LD, some of us from the CubedHost.org team decided to participate and give it a shot, as we had admired the past few compos from afar.

So to pass the time and give me an excuse for procrastinating further, I began work on our base code; just some simple stuff like getting our code skeleton down, a tick system, and a simple window opening and automatically optimizing the framerate. The latter of those three proved to be the most difficult.

Through trial and error I applied different algorithms, ideas and whatnot, in an effort to calculate the current framerate, and essentially figure out how fast it could refresh, without falling behind or eating up all your CPU. Finally, I have found one that I am satisfied with, and although it is by no means perfect, it shall do for now.

As you can see, it’s not too exciting; however, I’m proud. Feel free to look around the code: here.

Enjoy :D

Leave a Reply

You must be logged in to post a comment.


All posts, images, and comments are owned by their creators.

[cache: storing page]