Racing game experiencing bad performance

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Fluid gameplay for my race game.

  2. What is the issue? There are random lag spikes. Generally the car won’t respond to player input or the steering might freeze up for the entire server. I’m not sure if it’s roblxo or my game.

  3. What solutions have you tried so far?
    I polished the scripts and removed all unnecessary connections and whatnot.
    I looked up what memory meant in the developer hub and couldn’t understand much what it meant. I went to my scripter and he told me that as long as it’s

I checked the memory log.
Client memory usage is around 500MB and less.
Server memory usage is around 1500 MB and less.
50% of that memory is used for “Place Memory” I think that’s what it’s called.
https://www.roblox.com/games/4519631442/Bloxy-Roads

If you crash into one of the cars at high speeds u’ll notice what I mean.

How are you detecting collisions? Or what happens when 2 cars collide. I just tested it out and crashed into one of the dummy cars → when that happened my fps dropped like you said and the car did its explosion effect where parts were unwielded, and fire was created, etc.

If you’re using touch connections, are you sure they aren’t firing in rapid succession?

1 Like

The touch connections are fired in rapid succession
Should I do a debounce? How should I do the debounce specifically?