Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
February 09, 2012
Home
Help
Search
Calendar
Login
Register
Dark Bit Factory & Gravity
»
PROGRAMMING
»
C / C++ /C#
»
AHX player
« previous
next »
Print
Pages:
1
2
3
[
4
]
Go Down
Author
Topic: AHX player (Read 10925 times)
0 Members and 1 Guest are viewing this topic.
Jim
Founder Member
DBF Aficionado
Posts: 5098
Karma: 380
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
Logged
Challenge Trophies Won:
bbear
C= 64
Posts: 87
Karma: 4
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...
Logged
Jim
Founder Member
DBF Aficionado
Posts: 5098
Karma: 380
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
Logged
Challenge Trophies Won:
Print
Pages:
1
2
3
[
4
]
Go Up
« previous
next »
Dark Bit Factory & Gravity
»
PROGRAMMING
»
C / C++ /C#
»
AHX player