PROGRAMMING > C / C++ /C#

AHX player

<< < (13/15) > >>

Jim:
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

bbear:
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...

Jim:
Try adding

--- Code: ---timeBeginPeriod(1)
--- End code ---
right at the start, and

--- Code: ---timeEndPeriod(1)
--- End code ---
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

ufo:
Hi,
does somebody have working links for the player (AYS-AHX-Sources.zip)?
I'm currently looking for the smartest static library to play ahx stuff.
I saw this one, too: http://www.dbfinteractive.com/forum/index.php/topic,3876.0.html
But it starts up after a huuuge delay of time only (several secs).
cheers

Raizor:

--- Quote from: ufo on July 19, 2012 ---Hi,
does somebody have working links for the player (AYS-AHX-Sources.zip)?
I'm currently looking for the smartest static library to play ahx stuff.
I saw this one, too: http://www.dbfinteractive.com/forum/index.php/topic,3876.0.html
But it starts up after a huuuge delay of time only (several secs).
cheers

--- End quote ---

Here you go ufo. Welcome to DBF too btw :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version