Page 2 of 2

Re: Console memory lag issue

Posted: Wed Jul 15, 2015 1:48 am
by edward850

Re: Console memory lag issue

Posted: Wed Jul 15, 2015 2:01 am
by unknownna
Thank you very much for that build, edward850!
Graf Zahl wrote:As a quick test: Comment out the I_PrintStr call in c_console.cpp:PrintString to see if this helps resolve the lag.
Indeed, that took care of the issue. It's now as smooth as 1.22/1.23b33 (ZDaemon).

Re: Console memory lag issue

Posted: Wed Jul 15, 2015 4:55 am
by Graf Zahl
I addressed this by locally buffering the RichEdit control's content while that control is invisible. The content now gets added only if some later error forces display of that control again.
I'm waiting for confirmation now.

Re: Console memory lag issue

Posted: Wed Jul 15, 2015 7:52 am
by unknownna
Graf Zahl wrote:I'm waiting for confirmation now.
I'll need someone to supply me with a test build again. Or I could wait for the next build at DRD (which could take days).

Re: Console memory lag issue

Posted: Thu Jul 16, 2015 5:05 am
by unknownna
Ok, using zdoom-2.8pre-1669-gadd52d4.7z I was able to confirm that the issue has been resolved. However, it takes ages for it to generate an error report now if the console was full of stuff before the crash occurred. But I suppose it's fine for most cases though. It'll only take a while if it crashes after hours of play.

Thank you very much for fixing this issue, Graf. I really appreciate it. Thanks!

Re: Console memory lag issue

Posted: Thu Jul 16, 2015 7:39 am
by Graf Zahl
Out of curiosity, how long does it take? Several seconds, a minute or even more?

Re: Console memory lag issue

Posted: Thu Jul 16, 2015 7:50 am
by unknownna
It took around 36 seconds for it to generate the report when crashing after having copy-pasted the command in the OP. That's the equivalence of having played for around 1.5-2 hours on a high-intensity Zandronum CTF server I think.

Re: Console memory lag issue

Posted: Sun Aug 09, 2015 2:07 pm
by unknownna
Graf, several of the Zandronum developers are wondering whether you're going to improve the fix? Apparently it's not good enough for backporting in its current state.
unknownna wrote:It took around 36 seconds for it to generate the report when crashing after having copy-pasted the command in the OP.
They're not too happy with this part.

Re: Console memory lag issue

Posted: Sun Aug 09, 2015 3:02 pm
by Graf Zahl
To be honest, I have no good idea what to do here. The only way to get rid of the delay is not to add the messages to the log window and that's not a good option.

Re: Console memory lag issue

Posted: Thu Oct 06, 2016 6:04 pm
by unknownna
Graf, would it be possible to at least have a text displayed somewhere in the error window that says "Generating crash report, please wait." or something like that? I think the average, casual user would find it very confusing to just see a bunch of text streaming down the window fast without any further explanation on what's going on. Presumably the user would just close the window before ZDoom/Zandronum got a chance to generate the report.