minetest-mapserver / mapserver

Minetest realtime mapserver, written in go
Other
101 stars 22 forks source link

Enable rendering by max users #311

Open APercy opened 1 year ago

APercy commented 1 year ago

Could a configuration be created where I would enable rendering only when I have a maximum number of users, where passing that number it is disabled?

BuckarooBanzay commented 1 year ago

Possible, yes, this is to reduce load on a shared machine, correct? Did you try the renderingjobs and renderingfetchlimit options in https://github.com/minetest-mapserver/mapserver/blob/master/doc/config.md#renderingjobs already?

Also: what would be a sane default value?

APercy commented 1 year ago

Yes, I did. An initial value could be something like 99 to work in any case. In my case, I will use 0, to render only when nobody is at server.