Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Lag on fresh OS install.

Lag on fresh OS install.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #15 on Tue 13 Dec 2016 10:50 PM (UTC)
Message
Fiendish and I tested the thing you did and compared to the video. The total time for the speedwalk seems about the same (6 seconds). I can't pick much difference (compared to when I do it myself) but Fiendish thinks that your output is jerky.



I suggest you measure the number of screen redraws. Assuming you use the default "script prefix" that Aardwolf has (that is, "\\\") then you could type this before and after the speedwalk:


\\\print ("Redraw count", GetInfo (295))


You should see a number each time. I got 1144 and then 1228, so the difference is 84. Thus, the output window was drawn 84 times in that period. I counted around 100 lines of output, so not every line of output caused a redraw.

Now if you get a somewhat lower figure, that shows that, for the 100 (or so) lines of output, that the screen was drawn less frequently, thus accounting for the jerkiness.

Theory


Any Windows program processes events (things that happen) such as mouse-click, keyboard press, elapsed time (timer), disk file read/write complete, incoming/outgoing data to the Internet, and so on. The events have a priority so that if more than one happens, they are processed in priority order.

Screen redrawing is quite low priority - the idea is that it is important to catch (say) mouse movements, before drawing what that mouse movement meant.

Your new PC might have a faster Ethernet card, and thus be able to get data more quickly from the MUD. More data means that the "incoming MUD data" event is received and processed before the "redraw the screen" event. Thus with a lot of incoming data (eg. speedwalking) you may find that the room names are drawn in batches.

If it didn't do that you would probably be complaining that drawing a big room description is very slow. For example, a large paragraph might be "process one line", then "redraw screen" then "process another line" and "redraw screen" and so on. So it is actually desirable to get the incoming MUD data in and processed as quickly as possible. Even at the cost of slight jerkiness under certain circumstances.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #16 on Tue 13 Dec 2016 11:17 PM (UTC)
Message
I have an idea, but I'm going to hold it until after we get the result of this test.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Khannon   (32 posts)  Bio
Date Reply #17 on Wed 14 Dec 2016 06:13 AM (UTC)
Message
I do use MUSH default '///'
rt oz
before - 490, after - 542, I did about 5 tries, difference stays 52,53,54,53,52

I should probably do same test on old PC too? I'll have to post it later on, I'll check laptop too.

Really thought internet was ruled out when laptop hit same same issue with different methods, netstick, wireless, ethernet.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #18 on Wed 14 Dec 2016 06:46 AM (UTC)
Message
I can't get too excited about having the window redrawn every second line, however this plugin may help:

Template:saveplugin=Force_Repaint To save and install the Force_Repaint plugin do this:
  1. Copy between the lines below (to the Clipboard)
  2. Open a text editor (such as Notepad) and paste the plugin into it
  3. Save to disk on your PC, preferably in your plugins directory, as Force_Repaint.xml
  4. Go to the MUSHclient File menu -> Plugins
  5. Click "Add"
  6. Choose the file Force_Repaint.xml (which you just saved in step 3) as a plugin
  7. Click "Close"



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>
<plugin
   name="Force_Repaint"
   author="Nick Gammon"
   id="9b6b43fdb60091fefb6506ba"
   language="Lua"
   purpose="Forces output window to be redrawn after every line"
   date_written="2016-12-14 17:42:38"
   requires="5.00"
   version="1.0"
   >
<description trim="y">
<![CDATA[
Just install it.
]]>
</description>

</plugin>

<!--  Script  -->

<script>
<![CDATA[
function OnPluginScreendraw (type, log, line)
  Repaint ()
end -- function
 
]]>
</script>

</muclient>



What that does is force an output window redraw after every line is received.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Khannon   (32 posts)  Bio
Date Reply #19 on Wed 14 Dec 2016 07:04 AM (UTC)
Message
Tried the plugin, it kind of gives same effect as smoother scrolling, however the same loading in batches occurs, it may feel little smoother, but in other hand when using commands such as eq or loading big room descriptions or who, those lines were loaded instantly, now and same effect as smoother scrolling had, they are loaded not instant, which is undesired too.


I also did the same redraw on laptop, with ethernet results difference - 46, 48, 47, 49, 48.
Top

Posted by Khannon   (32 posts)  Bio
Date Reply #20 on Wed 14 Dec 2016 07:20 AM (UTC)
Message
I also sent the plugin test video. In case you should be interested.
Top

Posted by Khannon   (32 posts)  Bio
Date Reply #21 on Wed 14 Dec 2016 07:42 AM (UTC)
Message
Fixed the issue or resolved rather, I remember using program called Leatrix in old PC. That was long, very long time ago I used to fix network issue in World of Warcraft. So I thought I try it and after install and reboot it did the trick.

Website: http://www.leatrix.com/

However I only thought about it when you brought up the internet/network theory it made me think what have I installed to old PC, and leatrix crossed my mind quickly as it worked miracles for when I had issue in gaming.

Thanks both of you for helping to figure this out. The annoyance it caused in mudding was just so deep for me.
Top

Posted by Khannon   (32 posts)  Bio
Date Reply #22 on Wed 14 Dec 2016 07:45 AM (UTC)
Message
Just thought to try the redraw script. It makes perfect sense, with leatrix, it now results 102 in difference.
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #23 on Wed 14 Dec 2016 09:56 AM (UTC)

Amended on Wed 14 Dec 2016 09:59 AM (UTC) by Fiendish

Message
I'm glad you got it fixed!

Khannon said:

Tried the plugin, it kind of gives same effect as smoother scrolling, however the same loading in batches occurs, it may feel little smoother, but in other hand when using commands such as eq or loading big room descriptions or who, those lines were loaded instantly, now and same effect as smoother scrolling had, they are loaded not instant, which is undesired too.

Yeah, I was going to suggest something similar to what Nick suggested except using BroadcastPlugin(999, "repaint") so that my Repaint Buffer script[1] would take effect instead of directly calling Repaint(). I avoid ever calling Repaint() directly because repaints are quite noticably slow when you do many of them.

[1] - https://github.com/fiendish/aardwolfclientpackage/wiki/Repaint-Buffer

https://github.com/fiendish/aardwolfclientpackage
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.


57,729 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.