[Manaplus] BUG related to caching of images

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
t3st3r
Novice
Novice
Posts: 319
Joined: 11 Jun 2009, 13:46

[Manaplus] BUG related to caching of images

Post by t3st3r » 27 Sep 2018, 22:16

FYI: there is some BUG related to caching of images or something like this. Resource manager does not plays well with reconnect. It valid up to 1.8.9.1 and current git.

Some ppl complained client suddenly lags in recent versions of manaplus, I've eventually got that kind of lag/stutter myself and eventually tracked down how to reproduce that.

On a very basic level, it would be like this:
1) Start client, connect to some server, TMW classic would do.
2) Ensure everything runs okay without performance problems - walk some few maps, noticing FPS & lag spikes.
3) Esc -> switch server -> connect to same server once again.
4) Once in game again, take some look around and walk some few maps, noticing FPS and lag spikes again.

When stutter-like client lag does happens, debug tab outputs messages like this:
[20:03] no resource in cache: graphics/tiles/woodland_indoor_x2.png
[20:03] ../../../src/resources/resourcemanager/resourceman ager.cpp:495: in function `release'

So my wild guess would be that client does something wrong related to resource management when disconnect or server switch happens. This seems to cause plenty of these errors and it causes lags/stutter when client does not responds even on powerful computer. Not even mouse moves for like 1-2 seconds inside client when this happens, not to mention frozen screen content. This does not happens on "fresh" client launch - i.e. just starting client and connecting server 1st time would lack these messages - no associated stutter/lag would happen as well.
4144
Client Developer
Client Developer
Posts: 925
Joined: 03 Aug 2009, 12:57

Re: [Manaplus] BUG related to caching of images

Post by 4144 » 02 Oct 2018, 00:55

t3st3r wrote:
27 Sep 2018, 22:16
FYI: there is some BUG related to caching of images or something like this. Resource manager does not plays well with reconnect. It valid up to 1.8.9.1 and current git.

When stutter-like client lag does happens, debug tab outputs messages like this:
[20:03] no resource in cache: graphics/tiles/woodland_indoor_x2.png
[20:03] ../../../src/resources/resourcemanager/resourceman ager.cpp:495: in function `release'
If you set checkbox in performance tab for setting "Disable logging in game (do not enable)". is it fixed issue?
User avatar
t3st3r
Novice
Novice
Posts: 319
Joined: 11 Jun 2009, 13:46

Re: [Manaplus] BUG related to caching of images

Post by t3st3r » 04 Dec 2018, 02:26

Somehow I've got impression in recent GIT clients this problem got at least partially uplifted even without trying this. Maybe because caching related messages no longer in debug tab, etc - that's the only relevant change I can imagine. I'll take an eye on this and if I spot such a terrible lag spikes once more, I would try that performance option for sure.
Post Reply