OpenGL speed
Why is it that in linux OpenGL seems to run twice as fast.
You see I''m writing a cross platform program using SDL/OpenGL. I attached a simple fps readout to it and I get twice the fps in Linux that I do in Windows(I''m using the exact same code). Now here''s the wierd part. I optomised(sp?) my program and it sped up by about 210% in linux and in windows it didn''t change one little bit. Anyone know why?
Actually thinking about it I''ve heard the OGL refresh rate in WinXP is set a 60hz for some reason, probably because MS want gamers to find they get headaches playing OGL games and so switch to DX games. Anyway if it is set at 60% then I think I haven''t unchecked the vsync box in the OGL section of my drivers. I''m gonna check it out.
Anyone got any other therorys?
Just done that. It does speed it up a lot (ie from 60fps to 200fps) but it''s still half the speed of the linux version. Oh well I suppose SDL/OpenGL go a lot faster on linux
Is it possible that you are not using GL accelerated drivers in windows? SDL will set OpenGL to run in software emulation mode if it can't get hardware acceleration...
It might also bee the compiler you are using, if you are using VC++ and you aren't compiling for release it may be that the code isn't as optimized as it could be.
Hope that's useful.
-- Aaron
| HollowWorks.com | Rhott.com |
(Edited for spelling)
[edited by - mrhollow on September 6, 2002 8:37:27 PM]
It might also bee the compiler you are using, if you are using VC++ and you aren't compiling for release it may be that the code isn't as optimized as it could be.
Hope that's useful.
-- Aaron
| HollowWorks.com | Rhott.com |
(Edited for spelling)
[edited by - mrhollow on September 6, 2002 8:37:27 PM]
Yep using release mode in MSVC++ and I definetly have the right drivers installed cause I have all the nvidia stuff in my display properties
Oh well I don''t really care I was just wondering if OpenGL was faster in linux
Oh well I don''t really care I was just wondering if OpenGL was faster in linux
on my gf2mx ive found opengl 1-5% quicker with linux than windows.
IIRC looking at quake3 benchmarks it does seem to go about 5% quicker under linux than windows.
certainly not as big of difference as u have from windows->linux i assume u havent got windows setup correctly eg if u have a via motherboard perhaps u havent the correct 4-1 drivers installed
http://uk.geocities.com/sloppyturds/gotterdammerung.html
IIRC looking at quake3 benchmarks it does seem to go about 5% quicker under linux than windows.
certainly not as big of difference as u have from windows->linux i assume u havent got windows setup correctly eg if u have a via motherboard perhaps u havent the correct 4-1 drivers installed
http://uk.geocities.com/sloppyturds/gotterdammerung.html
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement