The Daily Click ::. Forums ::. Klik Coding Help ::. slow down with scrolling?
 

Post Reply  Post Oekaki 
 

Posted By Message

Paul_James



Registered
  02/07/2002
Points
  1320
17th April, 2007 at 14:33:19 -

hmm anyone have an idea on how to stop the slowdown with scrolling?

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

Reno



Registered
  11/01/2005
Points
  906
17th April, 2007 at 14:56:21 -

clarify. be more specific

 
Reborn Again

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th April, 2007 at 15:08:18 -

It depends on the machine. I've had it on many slower machines, but I don't know if there's really a solution to the problem.

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
17th April, 2007 at 16:23:19 -

Lower resolution, less colours help.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th April, 2007 at 16:35:45 -

Yup. "Resize display to fill window size" also tends to slow down some games, especially while scrolling and stuff. It's generally a better idea to use the "change resolution" option instead.

Image Edited by the Author.

 
n/a

vrba79



Registered
  17/03/2007
Points
  125
17th April, 2007 at 17:05:43 -

Don't use more colors then you need.
Destroy objects that aren't on screen.
Use a sensible resolution.
Try Machine independant speed.

 
[Will watch Aquaman cartoons for beer money.]

Paul_James



Registered
  02/07/2002
Points
  1320
17th April, 2007 at 17:42:48 -

hmm i think it may just be my computer
did a little experiment and the scroll lagged
but not as noticable on my machine

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
17th April, 2007 at 19:53:48 -

Turning Vsync on can often cause huge slowdown.

 
.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
17th April, 2007 at 20:16:46 -

Actually, how many colors you literally use doesn't matter. If you say, set the display to 256 colors, it won't matter if you just use one of those colors or all 256; the color mode is really all that matters.

 
n/a

Paul_James



Registered
  02/07/2002
Points
  1320
18th April, 2007 at 01:44:21 -

hmm i guess for my 4-bit game i shouldnt be using
5 BAGILLION COLORS
jp

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
18th April, 2007 at 02:26:19 -

Phredreeke had some "always make a bunch of objects invisible" events in his Scurvy Sanchez code. I removed them, and BAM. The game ran twice as smooth immediately.

If you have lots of detectors, make them as small as possible, but make sure they don't lose their functionality because of it. This actually helps. Using box collision instead of precision collision on detectors will also save on memory usage.

Try turning on/off DirectX, it might help.

Of course, some computers just don't cope with scrolling well.

 
Old member (~2004-2007).

Paul_James



Registered
  02/07/2002
Points
  1320
18th April, 2007 at 05:24:47 -

i think the problem is that i grouped each part of the movement
and add an always set position of detectors at the beginning and end of each group so as not to lag - however, this may be the problem - ill rehack it later


 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
18th April, 2007 at 06:11:50 -

Setting the position of the objects multiple times is inefficient: doing it once at the end of the entire event list should be enough.

See, your event list is looped through once every time a frame was drawn, so putting the same event with the same effect twice has absolutely no effect. Unless you set a detector's position to an object's position and then set the other object's position to something else, because that will result in the detector falling behind with the object.

The order of things is important because of this.

 
Old member (~2004-2007).

Paul_James



Registered
  02/07/2002
Points
  1320
19th April, 2007 at 00:27:14 -

yes i understand that - which is why i did it - but i grouped my events wierdly (left movement, right movement, jump, falling, landing, etc.) so ijust put it at the top and bottom and bam much faster

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...
   

Post Reply



 



Advertisement

Worth A Click