Graphics spatial hash keeps using more memory

My game starts off using 1gb of ram if you play for too long it starts using 2gb of ram and u lose a ton of FPS

start:

when u first join i was on 200 fps

playing for 10 minutes:

image

I guess it’s optimization time then!

Possible causes:

  • Not unloading/deleting unused assets (not deleting AnimationTracks, Instances without a Parent, etc.)
  • Too much stuff happening in the same scope (many raycasts, loops, not using task.spawn or using way too much task.spawns)
  • Too many physics updates
  • Too many instances rendered, better use StreamingEnabled
  • Hella unoptimized scripts

ill try do all that. my scripts are alright but ill make sure to destroy anims

if i require a module on renderstep can that cause lag

Depends on how much stuff you execute in it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.