AvarianKnight / pma-voice

An easy drag n' drop resource that gives you a wrapper to use FiveM's built-in mumble voice.
MIT License
225 stars 192 forks source link

Lag Spike Issues #45

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug Seems to be have an issue with usage spiking when above like 20 players on my server, I have only changed the way the keybinds works on the resource but have kept everything else the exact same. it might have something to do with fetching the grids as u move into them, we tried moving to a smaller grid size and tbh it made it worse.

https://lithi.io/file/5fDY.png https://lithi.io/file/jokI.png

To Reproduce get players, move around, lag spikes?

Expected behavior no lag spikes

Server Info:

ghost commented 3 years ago

updated to ur latest changed and still same lag spikes https://i.imgur.com/2a0YcYu.png

AvarianKnight commented 3 years ago

Are your players constantly changing grids?

Also screenshot of the hitch doesn't really provide any information, if you can manage to get a profiler of it when it's happening that would provide exact details as to where it's happening. You can do that by running profiler record 150

ghost commented 3 years ago

it happens when they are traveling around by car and changing grids, ill use the profiler to show more info tho

AvarianKnight commented 3 years ago

it happens when they are traveling around by car and changing grids, ill use the profiler to show more info tho

Try setting your grid size larger, setr voice_zoneRadius 64-128

ghost commented 3 years ago

cant seem to figure out how to work the profiler but ill try increasing the radius

ghost commented 3 years ago

just found out this is happening on all mumble based servers, seems to be a FiveM issue

xrtw commented 3 years ago

same here

Doxylamin commented 3 years ago

I've been experiencing a similar issue, where (when traveling by car) I got lag spikes when travelling by/through a grid with ~30 players in it. Described issue caused freezes with resource time warnings afterwards. I'll try to provide some more debug information regarding this.

AvarianKnight commented 3 years ago

just found out this is happening on all mumble based servers, seems to be a FiveM issue

I would still try setting your grid range higher, probably between 64-128. Though note you will see an increase in bandwidth usage.

aerole15 commented 3 years ago

image 32 = 128 right?

AvarianKnight commented 3 years ago

image 32 = 128 right?

No, don't know if this actually gets fixed from setting zones higher, as it seems to only be a 3d audio issue in audio polling