blakepell / AvalonMudClient

A Windows MUD client written in C#/WPF for .NET 8.
Other
31 stars 7 forks source link

Add a back buffer for viewing of history. #8

Closed blakepell closed 4 years ago

blakepell commented 4 years ago

Add a back buffer to view text that was previously sent to the mud client. Ideally page up and page down would invoke the back buffer which would take over the upper part of the screen allow the player to scroll back through text that previously was sent while also being able to see text that is incoming on the lower half of the screen.

blakepell commented 4 years ago

Completed and merged into master.

blakepell commented 4 years ago

Note, there's an opportunity to probably make this more memory efficient. Currently the main terminal keeps all of the text that's incoming that hasn't been redirected to a different terminal. The back buffer keeps a mirror of this. The main terminal probably only needs what it can display on the screen (and a little more I guess if it needs to retrain color information). The CPU hit is pretty low on this and the memory hasn't shown to be too bad either but still.

I've gotten 50,000 in the main terminal and not had performance issues. The AvalonEdit folks did a pretty bust up job on that control.