The Daily Click ::. Forums ::. Klik Coding Help ::. I hate Lag Sandwiches
 

Post Reply  Post Oekaki 
 

Posted By Message

EonDev



Registered
  13/01/2007
Points
  219
6th December, 2007 at 16:59:16 -

Basically I've been developing an MMO for two months now but anytime i run the new version, i get lots and lots of lag. I tried the game in Standard, DirectX and DirectX + VRAM modes. Could it be due to my large maps? (I'm using a custom movement engine which is grid-based btw). I also tried setting everything to load on call. Any ideas?
My PC is top specs too.

 
Breathing? It's optional!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
6th December, 2007 at 18:20:37 -

Could be something in your code slowing the process down... have you tried this across LAN?

 
http://www.SilverNova.co.uk


EonDev



Registered
  13/01/2007
Points
  219
6th December, 2007 at 18:23:35 -

Yea i tried it across LAN. Its the game slowing down, not the data being sent back and forward.
I even tried the game with only Movement enabled, not MMO features and it still lags.
Could it be sumthin to do with the HUD/UI?

 
Breathing? It's optional!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
6th December, 2007 at 19:43:35 -

Check the last version that you saved before this new one, and look at what you have changed. Also, layers in MMF2 are crap in my opinion And they tend to lag up your game, so take a look to see if you have any layers not doing anything.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

EonDev



Registered
  13/01/2007
Points
  219
7th December, 2007 at 05:19:58 -

The only thing I have changed is the movement system. I used to use the standard MMF movement which was pretty bad so I changed it to a grid based movement. I'm also not using any layers for that exact reason so everything is in the one layer.

God we need Hardware Acceleration!!!!!!!

Image Edited by the Author.

 
Breathing? It's optional!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
7th December, 2007 at 05:32:44 -

Could just be a random stuff-up. Open up the new and old versions and copy the code for the new movement into the old source. If the problem is solved; it was just MMF trying to piss you off as it sometimes does. If it still happens, you must have an issue with your code, possibly to do with object creation or nested fastloops. Check it over again or enlist some help to debug it in that case.

 
n/a

EonDev



Registered
  13/01/2007
Points
  219
7th December, 2007 at 06:22:22 -

Nope, didn't work. I haven't used any Fastloops. I'm gonna try it on my friend's PC and see is it just my PC.

 
Breathing? It's optional!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
7th December, 2007 at 16:55:40 -

Maybe you could build the game and upload it to see if it lags on our computers?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
7th December, 2007 at 17:46:09 -

Which graphical objects are you using?
Are you using fastloop? How many loops per frame?

 
Service Unavailable

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
7th December, 2007 at 18:29:57 -


Originally Posted by LIJI.
Which graphical objects are you using?
Are you using fastloop? How many loops per frame?




Originally Posted by Tom C
I haven't used any Fastloops.



 
http://www.SilverNova.co.uk


EonDev



Registered
  13/01/2007
Points
  219
7th December, 2007 at 19:01:03 -

I use one giant quick-backdrop for a giant grass background and then backdrops for buildings, trees, etc.... The frame is rate is 50, and i tried altering that value but didn't make a difference. I send it to my friends and it lags on their PCs too. Its very strange...

Can I ask does anyone else experience lag when they use loads of objects in an extremely large map?
Or I shud I be creating everything in one massive backdrop?

Image Edited by the Author.

 
Breathing? It's optional!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
8th December, 2007 at 04:41:28 -

Okay, to be clear on this:

-You said it worked fine before you changed the movement code.
-You experience slowdown on other machines too.
-Copying the new code into the old source does not solve the problem (ruling out corruption, which can cause problems like endless object creation).

If I'm following you and the above is true, that narrows it down to the new code. What's the difference between your new movement and your old movement? Is it just code? Does it create objects? Does it use groups? Have you tried deleting or amputating events in your new code one-by-one to see which line causes the slowdown?

Using lots of objects on a big map can cause issues on slower machines, but unless they're all doing things simultaneously it just chews up more memory for most people. If you were using lots of objects on a big map before you had this problem (based on you saying the only thing changed is movement code), then that can be ruled out as the primary cause too.

 
n/a

EonDev



Registered
  13/01/2007
Points
  219
8th December, 2007 at 06:45:29 -

I woke up this morning and it seemed to have fixed itself?!?!?!?!?!

I'll post if I find out what the hell was causing it (but I didn't change anything). Maybe it was something to do with my computer and not MMF?!?!?!?!?!?!

 
Breathing? It's optional!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
8th December, 2007 at 07:12:12 -

Firewall settings etc?! :S Spyware? .. weird, but WOO

 
http://www.SilverNova.co.uk


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!
8th December, 2007 at 12:25:09 -

I think something might have been taking up a lot of CPU, leaving very little to use for MMF. Restarting must have solved that.

 
Old member (~2004-2007).

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
8th December, 2007 at 12:40:16 -

On both PC's though? :\ strange stuff..!

 
http://www.SilverNova.co.uk


EonDev



Registered
  13/01/2007
Points
  219
8th December, 2007 at 18:40:08 -

Yea maybe I had something taking up a lot of CPU. Wudn't have been the firewall anyway coz I ran if offline too to see it was it sumthin to do with the online/server code. It works anyway now so WOOOOOO

 
Breathing? It's optional!
   

Post Reply



 



Advertisement

Worth A Click