thegrb93 / StarfallEx

Starfall, but with active development and more features. Write Garry's mod chips similar to E2, but in lua
https://discord.gg/yFBU8PU
Other
199 stars 112 forks source link

Precaching of high complexity model always crashes chip on first placement #1883

Closed ZH-Hristov closed 3 weeks ago

ZH-Hristov commented 1 month ago

Is there really nothing that can be done about this? Perhaps pausing the quota checking right before a model is about to be precached and then resuming it afterwards, if that is even possible.

The model doesn't even have to be that high polygon to crash the chip. Simple main character models like Grigori or Eli can crash the chip when being precached.

ZH-Hristov commented 1 month ago

At the very least, we could have the precacheModel function in SF that stops the quota check before it's ran perhaps?

wrefgtzweve commented 1 month ago

a precacheModel function would be incredibly abusive

ZH-Hristov commented 1 month ago

Could check if the model exists beforehand, run if doesn't.

ZH-Hristov commented 1 month ago

Alternatively, maybe the quota pause could be for specific functions like setModel or prop/holo creation, which could cause a precache to happen.

thegrb93 commented 1 month ago

I don't think there's a solution for this. Any addon suffers from it. It's typically models with very large uncompressed textures that lag the most.

ZH-Hristov commented 4 weeks ago

I don't think there's a solution for this. Any addon suffers from it. It's typically models with very large uncompressed textures that lag the most.

Is it the textures specifically? I can compress them but I've experienced it happening with a Grigori model with L4D animations and stock HL2 textures ported from the L4D workshop.

thegrb93 commented 4 weeks ago

Probably a combination. Any ragdoll can be laggy since it has a combination of high res textures and high poly

thegrb93 commented 4 weeks ago

Doesn't really help find a solution. Only solution I can think of is running the server on an ssd or ramdisk

ZH-Hristov commented 4 weeks ago

That's the thing though, I am running it off an SSD, and it can still happen. Awful issue overall, not sure even Rubat could do anything about it. Seems like a deeply rooted engine thing.

thegrb93 commented 4 weeks ago

Maybe a precache directive could be added --@precachemodel