Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Speed differences?
- By jblovloss Date 2009-09-14 05:59
Well, jlnr has saved me with my previous bug, which was that under windows the boost::bind broke on me. Thanks so much!!!

Now I need to figure out why there's a significant slowdown in the speed my characters move. It takes them about 4 times the amount of time to get to the next spot as it did in linux. I tried setting the game speed all the way to 0.1 and even 0 and it never got playable - always slow. Compare that to the fact that if I do the same thing in linux, it would look super-hyper.

I admit that I haven't done any timing events (YET). Every update(), the characters move a pixel in the given direction, and it just happens that the set game speed looks perfect in linux, at least on my computer. But I don't understand why it would be this significantly different under windows unless I was doing something really wrong. After all, the two operating systems are running on the same exact computer, and it's a pretty souped up machine. Even if timing events DO fix it, it shouldn't have to move characters 4 pixels at a time just to catch up.

I guess what I'm asking is, is this a known problem, or some known mistake that I tripped on stupidly? Any input at all would be great, because I might just need the right idea where in my code to look. Anything slower in windows than linux would be of interest to me.

Thanks a bunch!
- By deps Date 2009-09-14 06:43
Well, this is a pretty whild guess, but do you have the latest graphics drivers for windows? Gosu uses OpenGL (even in windows, right?) and the drivers that usually comes with a new computer usually isn't exactly state of the art in the GL department. :P

If you are already using the latest drivers, then I have no idea...
- By jlnr (dev) Date 2009-09-14 07:27
Yeah, missing OpenGL acceleration would explain really horrible performance, in the one-digit FPS region :) But it sounds as if it was still playable i.e. maybe 20 FPS? Then, is this true for all Gosu games or just yours?
Up Topic Gosu / Gosu Exchange / Speed differences?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill