justalemon / SimpleSync

Resource for FiveM that allows you to sync Time, Weather and Artificial Lights (Blackout) between players
MIT License
15 stars 9 forks source link

So heavy resource #28

Closed gunsela92 closed 2 years ago

gunsela92 commented 4 years ago

I made the settings of time and weather but it seems like the resource is so heavy

image

justalemon commented 4 years ago

What settings did you change? What are the specifications of the machine that you are using?

gunsela92 commented 4 years ago

I just set my weather to Istanbul and timezone. My specs are Xeon 2288G 4 Cores, 16 GB Ram 1 gbps network speed

justalemon commented 4 years ago

I would say that this is normal because we need to get the weather every minute and the time every second. Sadly, it does not say what tick is having problems.

xrtw commented 4 years ago

yes for me also high tick rates.. sorry no repro have

JSanchezFDZ commented 4 years ago

I also think this script is too heavy. Has an excess of consumption.

Could you add that it checks the weather every X time? Thus we would save consumption.

Sorry for my bad english

xrtw commented 4 years ago

yeah went back to vSync... so much using in profiler this SimpleSync

justalemon commented 4 years ago

Sadly, FiveM does not support the debugging of game scripts, so I can't know what function or native call is using too much memory.

Also, don't rely on the profiler too much, as this also takes native calls into consideration and this might be the problem in this case. Side note: it does not reports which tick is causing problems, and there are 4 different ticks running.

Could you add that it checks the weather every X time?

Can you create a new issue for this feature request please.