Posts: 173
Threads: 41
Joined: Nov 2002
a simple demo of a gunship i'm working on. the ship doesnt fly around it just shows the object based animation and the control scheme for the ship, as well as guns firing
http://syn9.thingie.net/game/gunship.zip
controls:
- UP - fwd thrust
DOWN - brake
LEFT - turn left
RIGHT - turn right
E - Burst Thrust
S/F - Strafe
SPACE - fire guns
Posts: 1,025
Threads: 44
Joined: May 2005
sweet
Posts: 1,688
Threads: 119
Joined: Jun 2003
awesome! windowed ran at 90 fps the whole time.
Jumping Jahoolipers!
Posts: 489
Threads: 34
Joined: Jan 2005
nice, windowed ran @ >400 fps the whole time O_O
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Posts: 484
Threads: 14
Joined: Apr 2005
ran about 25fps here on a rubbish 4mb video card, seemed really smooth though
EVEN MEN OF STEEL RUST.
Posts: 173
Threads: 41
Joined: Nov 2002
thanks guys, by chance, do you guys know how to findout if a window has completed drawing? that way i can only draw a scene at 60hz? i'm having a problem when i run the demo w/o forcing vsync where the gun flash doesnt quite show up at the higher frame rates. i'd like to draw the scene at 60hz, but during the cycles where there is no drawing, perform other routines
Posts: 2,771
Threads: 96
Joined: Oct 2003
Thats really, really sweet. ~500fps all the time
Was there supposed to be gunflash? Or is that just in your latest build?
Posts: 1,272
Threads: 36
Joined: Feb 2003
Very cool.
244 exe in wine, 248 native Linux
Posts: 173
Threads: 41
Joined: Nov 2002
yea, there is, but in the higher frame rates you cant see it
Posts: 1,774
Threads: 62
Joined: Aug 2003
Have you tried using glfwswapinterval? You might also try using glflush before you call glfwswapbuffers. Are you just sticking a light in front of the ship to simulate the flash? If so, you could do something like this...
Code:
If GlfwGetTime()>=Flash_Time Then
Flash_Time = GlfwGetTime()+Flash_Delay
Flash_On XOR = TRUE
End If
If Flash_On Then
glEnable GL_LIGHT?
ELSE
glDisable GL_LIGHT?
End If
'draw ship...