My balls are lagging!
Albin Engström

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?.

Archon
Quote:

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.

mscava

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.

gnolam

If you want help, post the source, not a binary. :P

cdxrd

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.

Mr. Big

"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"...

Albin Engström

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!!!!

Mark Oates

Why did I immediately click on this thread?

Matthew Dalrymple

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.

Mr. Big

Chill... I was just kidding... :P

Albin Engström

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 :(. :)

Kauhiz
Quote:

there has to be a way to fix this :(.

Yeah, well it's really hard to fix it without seeing the friggin' code! :P

Onewing
Quote:

My balls are lagging!

Take a cold bath. Fwoop! Fixed.

Arthur Kalliokoski
Quote:

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.

Albin Engström

fuzzing..... ?

Mark Oates

591155 maybe..?

Matthew Dalrymple

Nice example. I give you Props x 1000

Ariesnl
Quote:

Quote:

My balls are lagging!

Oh, really?

;D LMAO ;D;D;D

Albin Engström

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.

Kauhiz

Dude, let's see some code already! I bet that once you post the source, it won't be long before it's fixed.

Albin Engström

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). :)

FuriousOrange

runs fine on the machines here at work

GullRaDriel

Fine here too.

Neil Black

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?

GullRaDriel

There is a Spell Check function in the edit-box.

Neil Black

Yeah, I know. I just feel like being slightly annoying today.

GullRaDriel

Feel good. It is better for all !

Albin Engström

Hmm, i guess i should throw away my embarrassment... from now on i'll post my code when i need help.. revolution! :).

Kikaru

Go! Go! Go! cough

My code stinks. I still post it if someone asks. It's the way the world works. :)

Joel Pettersson
Kikaru said:

My code stinks.

#include <deodorant.h>

Bruce Perry

You spelt "embarrassed" right (unless you fixed it since). :D

However, someone needs to learn how to spell "lag". :o

Think how much fun I had when I was writing a game called Balls. ;D

Thread #589875. Printed from Allegro.cc