I'm back after a few weeks of WoW(shame on me) to battle with my problems once again, but no mather how much i try, the result is always the same. I've added an attachment with a very simple and small thing i wrote this afternoon, it includes the most simple routines and uses triplebuffering(should use). the thing is.. i can't get the moving objects to stop lagging around! and i'm staring to wonder if this is a problem that only i'm cursed with. In the program you can se 4 balls moving thowards the right edge of the screen with different speeds, the green ball moves one pixel every frame, while the others are fixed by time, as you can see (IF this problem applies to you) is that the brown-yellow ball sometimes lags and moves back veryfast(and so does the others balls).. any idea why this happens?.
My balls are lagging!
Oh, really?
...
I didn't download the attachment (too lazy to set it up), but it could be the timer code, I'm guessing.
This is normal issue( for me )... some kind of minilags... You'll never get you app perfectly smooth. As I know PAGE_FLIPPING is smoother than DOUBLE_BUFFERING. I know this is very annoying, but you'll get used to. And players won't notice... Thay pay much more attention to the game.
If you want help, post the source, not a binary.
I can also say, it sure doesnt exit very gracefully either.. At work and upon exit, had to resize every window back to full screen instead of a 400x300 some odd size in the upper left.. ah well.
"My balls are lagging!"
Maybe I drink too much coffee, but that title has me histerically laughing!
Oh well... Ten minutes ago I was laughing my butt off at a screenshot of a game with a box in it, with the notes "Danger: Box"...
Archon: time..coding?... :S.
mscava: ok. i don't like double buffering because of the increment of the lagg... but i used triplebuffering for that very reason.. to make it more smooth.
gnolam: well, i thought the problem was better displayed like this ^^.
cdxrd: dosen't exit gracefully.. interesting.
i actually let a necessary file out of the picture.. i thought it would do without :S.. maybe that's the cause,, i don't know.
Mr. Big: ...
So in other words: THIS IS NORMAL!??!?... NOOOOO!!!!
Why did I immediately click on this thread?
This problem is really unnoticeable. Before rereading your post, I thought the problem was the blue ball. Then after I reread and looked at the program again, I saw the problem. But without knowing what you're looking for its very hard to see.
Chill... I was just kidding...
Well, i don't know if there's a difference between different cumputers, but i don't think this is a little problem that can be overlooked, it's reallt annoying! there has to be a way to fix this .
there has to be a way to fix this .
Yeah, well it's really hard to fix it without seeing the friggin' code!
My balls are lagging!
Take a cold bath. Fwoop! Fixed.
My balls are lagging!
I thought the problem was the blue ball
The upgrade to Girlfriend 2.1 should fix that.
I don't see any lag, except the jitter of integral pixel coordinates. Try "fuzzing" the edges of the balls to reduce contrast.
fuzzing..... ?
maybe..?
Nice example. I give you Props x 1000
My balls are lagging!
Oh, really?
LMAO
ok i get it.. but i'm not sure if that would solve the problem, besides, i cannot "fuzz" the sprites i'm to use for my game.. it would look wierd :S.
Dude, let's see some code already! I bet that once you post the source, it won't be long before it's fixed.
NOOOOO!! NOT THE CODE!!! I'M SO ASHAMED! FORGIVE ME GOD!!...
it's ok now, i've played some other games and realized that this problem is not mine alone, (phew, i got away so easily this time).
runs fine on the machines here at work
Fine here too.
My code sucks, but i'll still post it if I need help. You shouldn't be embarrassed to post crappy code when you're asking how to make it not crappy. I completely misspelled embarrassed, didn't I?
There is a Spell Check function in the edit-box.
Yeah, I know. I just feel like being slightly annoying today.
Feel good. It is better for all !
Hmm, i guess i should throw away my embarrassment... from now on i'll post my code when i need help.. revolution! .
Go! Go! Go! cough
My code stinks. I still post it if someone asks. It's the way the world works.
My code stinks.
#include <deodorant.h>
You spelt "embarrassed" right (unless you fixed it since).
However, someone needs to learn how to spell "lag".
Think how much fun I had when I was writing a game called Balls.