roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
I understand, but in my case, the first map (weighs 3 megabytes)) consumes 100MB after the map already loaded (with the online game).
And the 35 meg map consumes 1000MB after it's loaded. (not while loading the map)
That makes sense?
but only map? script dont use anything?The map is 10 times bigger, and the result in memory usage is also around 10 times bigger.
To me, it seems as it should.
can i state that the map consumes memory and the scripts consume processor? (on a larger scale)Yep, scripts barely use any memmory compared to otbm maps. (especially on startup).
can i state that the map consumes memory and the scripts consume processor? (on a larger scale)
or is it a mistake to state this?
I understand, but in my case, the first map (weighs 3 megabytes)) consumes 100MB after the map already loaded (with the online game).Yep, correct. Scripts are being processed all the time, acting as an API to the server engine for easy manipulation and customisation of an OT without the need to edit source code and recompile a server.
The map is being loaded only on startup (but it might load slow here, and cost much CPU resources during this loading phase). But once its loaded into RAM there is no significant CPU usage just because the map is bigger. I believe @Evil Hero back in the days experimented with dynamic map loading through Lua, and even that was surprisingly fast.
I understand, but in my case, the first map (weighs 3 megabytes)) consumes 100MB after the map already loaded (with the online game).
And the 35 meg map consumes 1000MB after it's loaded. (not while loading the map)
That makes sense?
@Znote and @StigmaYep, because after its done loading, you need to keep it in RAM, so its super quick to access the parts of it that is needed when players login, click on minimap etc. And so scripts can quickly access different parts of the map, and so monsters can be spawned in the map, so house items can be loaded to it etc.