Gammon Forum
Entire forum
MUSHclient
Development
ANSI color performance
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Pages: 1
2
Posted by
| Mudaddict
(8 posts) bio
|
Date
| Reply #15 on Thu 06 Apr 2023 03:24 AM (UTC) |
Message
|
Nick Gammon said:
OK, here is my test:
https://www.youtube.com/watch?v=B2LDAASHlYY
I put a sequence number on the left (test number). As you can see it refreshes so quickly the sequence number for the entire batch of lines just jumps from one to the other. There is no visible scrolling.
This is running version 5.06 under Windows XP.
Exact test code:
require "aardwolf_colors" -- https://raw.githubusercontent.com/fiendish/aardwolfclientpackage/MUSHclient/MUSHclient/worlds/plugins/aardwolf_colors.lua
sequence = (sequence or 0) + 1
print (string.rep ("-", 60))
ansi_string = ColoursToANSI(string.rep("@x026/@x227/@x195/@x191/@x085/", 30))
for i=1,100 do Simulate("Seq " .. sequence .. ": " .. i .. " " .. ansi_string.."\r\n") end
print (string.rep ("-", 60))
print ("Sequence", sequence)
The cursor is on the right because it is clicking the Run button. For the last couple of tests I moved the cursor over the text and hit Enter to run the test.
So running these scripts, the rendering is fast. Now I'm wondering if something else is the cause. Wondering if it is indeed network related? | top |
|
Posted by
| Nick Gammon
Australia (23,001 posts) bio
Forum Administrator |
Date
| Reply #16 on Thu 06 Apr 2023 10:37 AM (UTC) |
Message
| Well ... Fiendish reported that the script slowed his rendering down. What about you? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Fiendish
USA (2,518 posts) bio
Global Moderator |
Date
| Reply #17 on Thu 06 Apr 2023 11:53 AM (UTC) Amended on Thu 06 Apr 2023 11:54 AM (UTC) by Fiendish
|
Message
| We may be testing different things. My slowdown happens when scrolling the output after the text has been written. Something is happening there that does not happen when the text is being written in the first place. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Nick Gammon
Australia (23,001 posts) bio
Forum Administrator |
Date
| Reply #18 on Thu 06 Apr 2023 09:07 PM (UTC) |
Message
| I see. Well, here is another test, using the same screen content as the earlier video, but now with me scrolling back and forwards using page-up/page-down and then the mousewheel. The mouse cursor is positioned to the right-hand side of the text.
https://www.youtube.com/watch?v=bLGXJMnWFqA
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Nick Gammon
Australia (23,001 posts) bio
Forum Administrator |
Date
| Reply #19 on Thu 06 Apr 2023 09:54 PM (UTC) |
Message
| You've taken your videos down which is unfortunate as we are still debugging this.
I am wondering if the redraw is slow if you scroll back and forwards (like Fiendish did) or if it is just slow as the text is delivered.
If it is slow in real-time (ie. during a fight) and not when you scroll back and forwards, then perhaps you have a plugin that is analysing the incoming data, and if there are lots of colour changes (and hence lots of style runs) then that is slowing down the plugin. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Mudaddict
(8 posts) bio
|
Date
| Reply #20 on Fri 07 Apr 2023 02:01 AM (UTC) |
Message
|
Nick Gammon said:
You've taken your videos down which is unfortunate as we are still debugging this.
I am wondering if the redraw is slow if you scroll back and forwards (like Fiendish did) or if it is just slow as the text is delivered.
If it is slow in real-time (ie. during a fight) and not when you scroll back and forwards, then perhaps you have a plugin that is analysing the incoming data, and if there are lots of colour changes (and hence lots of style runs) then that is slowing down the plugin.
It is slow during a fight, not scrolling. I tried scrolling both the mud text and the script text (with 1000 lines) and no issue at all, page up page down, mouse wheel, drag scrollbar, cursor on left, cursor on right, no issues.
I have no plugins, i have a default installation. I have scripts and triggers and timers, but the slowness happens even without them.
But now I'm wondering if its the mud im on. I tried aardwolf mud and it was fast listing "who".
The mud that is slow that im on is www.lofe.org port 8000. | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,731 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.