Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 04 May 2015 03:53 PM |
I'm tired of people telling me that my game has lag, which it does. Server lag.
If you guys want to see what i'm talking about join Demolition Derby, anyways. My question is how do I make my game have less server lag. I have, what I consider, optimized my code very well. Some people have told me to not store the vehicles in ServerStorage, so what do I do? |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 03:54 PM |
Turn the outlines property in Lighting to false, get a tiny bit of lag out.
Union as many things as you can.
Handle as many things client-sided.
|
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 04 May 2015 03:55 PM |
| That was no help at all, but thank you for trying. |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 03:56 PM |
-_-
How was it of no help? :P |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 May 2015 03:56 PM |
| reduce the number of iterations in your code such as the number of loops and I heard that StreamingEnabled can help reduce lag. Also, the number of parts you have can add up and cause lag |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 May 2015 03:58 PM |
| if you play your game in studio, click on View > Script Performance and see what script is going haywire, if any at all. |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 04 May 2015 04:00 PM |
| Thanks the thing, is only happens with there is a lot of players(Only like 5 -.-) I think its because of all the Remove Events that are being called. I have tried to optimize in the best I can. |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
| |
|
|
| 04 May 2015 04:35 PM |
whoever told you to not put the vehicles in serverstorage is dumb
serverstorage>lighting for storing things
how many scripts does your game have
|
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 04 May 2015 04:40 PM |
2 MAIN Server scripts 15 Other, mainly in vehicles. |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 04 May 2015 04:41 PM |
| I will have to tell you, after do the Lighting thing, it seems like a lot of the lag is gone. e.e |
|
|
| Report Abuse |
|
|
| |
|