- Client (production/canary) and FXServer version:
- Production (2021-09-04 1:14 AM)
- FXServer-master SERVER v1.0.0.4162 win32
-
What you expected to happen
Restart a resource that contains C# scripts, and it should run normally
-
What actually happens
After restarting a resource that contains C# scripts, those scripts make the game stutter at certain intervals (probably Ticks). The more I restart the resource, the worse it gets.
Using the profiler, it seems to be mostly due to “C# schedule” blocks.
-
Category of bug (eg. client, server, weapons, peds, native)
C# runtime (client)
-
Reproducible steps, preferably with example script(s)
- install vMenu as an example C# resource (I was able to reproduce it with it, even removing my own C# resources)
- start and connect to the server
- measure FPS and performance with resmon and/or profiler
- restart vMenu
- measure again
- restart it several time and watch the game stutters/freezes intesify
Before:
After:
Screenshots from the profiler, showing “C# schedule” taking a lot of empty space
1 Like
nta
2
I couldn’t directly replicate this, but some GC tuning does seem to help with the memory-use-tracking pauses getting longer after restarts.
A canary build later today should hopefully improve this scenario.
3 Likes
with bigger scripts the spikes between each script restart get heavier sooner
nta
4
Also, on current, try using mono_enableMemoryUsageTracking false to see if it affects any long GC pauses in resmon.
nta
5
Just wondering - did it help at all?
i tried yesterday restarting the same resource for about 1 afternoon while writing code and it seems it got fixed
but it can’t be confirmed if i’m alone to say this ahahah
Cuchii
8
@nta (I also had this problem)
Yes it helped, I did several tests and no freeze occurred: no high CPU usage.

1 Like
I confirm it’s not occurring anymore, thanks!
1 Like