GDC 2006 2D Physics Demo for D

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Oct 30 17:32:02 PST 2006


"clayasaurus" <clayasaurus at gmail.com> wrote in message 
news:ei67hf$2dgi$1 at digitaldaemon.com...
> After quite a conversion process, I've successfully converted the c++ GDC 
> 2006 2D Physics demo to D.
>
> Original:
> http://www.gphysics.com/archives/18
>
> D Version: 
> http://www.dsource.org/projects/arcgames/browser/trunk/physics/demo.zip?format=raw
>
> Use keys 1-9 to switch through demo, and space bar to launch the 'bomb'.
>
> It also comes with a public domain red black tree implementation that 
> seems to work. The author of 
> http://eternallyconfuzzled.com/tuts/redblack.html told me he is going to 
> add a license page that says all the code on his pages are in public 
> domain.
>
> Special thanks to Christian Kamm for helping me track done a bug.
>
> ~ Clay

Sweet, but it runs at about 3000 FPS, and so is nearly impossible to see 
anything running except the pyramid demo.  I see some kind of delta timing 
with the "dt" global in main.d, but it's set to a constant 1/60, and in 
windowed mode on Windows, it'll try to update the screen as fast as 
possible, so the frame time will be something other than 1/60 of a second.

Is there maybe a way to force it to run in fullscreen, so it's limited to 
the refresh rate?  I'd recompile it but I don't have Derelict, so.. 





More information about the Digitalmars-d-announce mailing list