Author Topic: AHX player  (Read 10925 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: AHX player
« Reply #60 on: April 16, 2007 »
Nice little demo...thanks for the name drop :)

I'm not sure about old 3dfx cards - they used to have a special OpenGL driver (as opengl32.dll) which didn't really support everything - so if you're using glPoint or something like that it might be really slow.  It's quite possible that both are rendering in software...

How are you syncing to 60Hz?  Using wglSwapIntervalEXT() is a good way to sync to the vblank, but if you run at < 60fps everything will look slow and/or jerky.  Either that or you can use the timer (Sleep, timeGetTime, QueryPerformanceCounter) but you have to be careful then about precision.

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: AHX player
« Reply #61 on: April 17, 2007 »
for opengl intro, I used SetTimer(hwnd,1,1000/60,null), case wm_timer:...
for tinyptc intro, it's in the main loop with timeGetTime

but for my friend, he have a S3Trio graphic card, so...

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: AHX player
« Reply #62 on: April 17, 2007 »
Try adding
Code: [Select]
timeBeginPeriod(1)right at the start, and
Code: [Select]
timeEndPeriod(1)right at the end of your program.
That should give the timers a bit more accuracy.  Right now they'll be all over the place.

I don't think that will fix the S3Trio problem though - old card that...

Jim
Challenge Trophies Won: