Jump to content
  • Advertisement
Sign in to follow this  
Flawe

FPS/optimizing thoughts

This topic is 4888 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok, i know there are a lot of threads on this topic but i have some other questions and I couldn't come up with a better title for the thread. Anyway, i'm trying to do a top-down shoot 'em up but I have some problems with the graphics. well, maybe not problems, but I don't really know why stuff happens. First...how come I always get exaclty 86 FPS, no matter what I do, when I have v-sync on? When I set it to off, i get around 224 FPS. Another thing that's bothered me...when my friends tested the game on this lap-top, he got a little above 100 FPS, but it still laged and the graphics looked choppy. What could that be caused by? Thanx a lot for any help or ideas

Share this post


Link to post
Share on other sites
Advertisement
Vsync only lets the card draw a frame every time the screen refreshes. This can get rid of tearing and some other graphics badness. If you look, your monitor probably refreshes at 85hz and you friend's at 100hz. I'm not sure why the graphics would be choppy... if you could describe it better that would be helpful.

Share this post


Link to post
Share on other sites
ok..thanx for the v-sync info..didn't knew that =)

well, i'm describing it as he did...i only sent him the demo of the game and eh told me the graphic was choppy..like the frame rate was really low..buts til showed above 100 FPS... =/

i could give you the demo too, if you have time and wat to try it. needs java 1.5 though.


by the way, about v-sync...is it better to leave it on or off?

thanx

Share this post


Link to post
Share on other sites
Methinks that the laptop display is different than a CRT monitor, so even if the application says it's chugging 100fps, the display cannot refresh that fast. I've seen this in other games.

Share this post


Link to post
Share on other sites
sounds reasonable, since it's only his computer that shows the graphics choppy...but how come he can play doom 3 and games like that, without having any problems with the graphics?

This is my first time trying to do something with OpenGL and I know the code is far from optimized...but I got a little scared when I only have a ship and some objects flying around and it already started to get choppy

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Are you sure your graphics are choppy ? or are you confused with your physics being choppy ?

Share this post


Link to post
Share on other sites
well, like i wrote before..that's what my friend told me. On my computer, the game runs very smoothly, both graphics and physics =/

Share this post


Link to post
Share on other sites
Is your friend a graphics programmer?

In my experience 'choppy' can mean absolutely anything from a user...

I'd guess it's just tearing because vsync is off, but don't try to fix it unless you've seen it yourself.

Share this post


Link to post
Share on other sites
Hi,

Have you considered it could be a latency issue... ie the graphics card is buffering up a lot of frames(more than it should) hence the input responds slower than it should.

You should perhaps check the drivers are the most recent possible(most new drivers for mainstream graphics cards dont buffer too many frames).

Failing that add an option to force the graphics card to syncronize, eg locking the back buffer, or to get a little more sophisticated, ping ponging between a pair of textures rendering one and locking the other in turn(so that no more than 1 frame is buffered, depending how smart the drivers are).

Another issue could be that your timing code isnt working properly, eg the laptop is using speedstep(changing CPU clock rate, to conserve power).

David

Share this post


Link to post
Share on other sites
Here's the demo, if someone would have the time and wanted to take a look, I'd really appreciate it.

Maybe you guys can see if it's the code which destroys everything or if it's the graphics card...

http://www.itstud.chalmers.se/~flavius/klient6.rar


EDIT: I know it's the code...but maybe you could be gentle :P

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!