Author Topic: Clear Command!  (Read 8386 times)

KaiAdin

  • Evil Feline Ice Mage
  • Moderator
  • Mage of Caerreyn, Level 3
  • ****
  • Posts: 763
  • *Pokes* Mewhahahaha!
    • View Profile
    • KC Central Nexus
on: September 22, 2011, 10:49:48 PM
Mewmew! Hey Fuzzies!

YAY! we have ANOTHER FANCY new feature for you! the

Clear Command

So.. if theres too many lines clogging up or slowing down your browser you can now type in

/clear X

Where X is any whole number (1-... infinity) and it will clear the X oldest messages from the chat! Also you dont have to put the X in that case all the messages will be cleared leaving you with a squeaky clean chat window!

Quote

/clear 10
(Clears the oldest 10 messages from the chat window)

/clear
(Clears all the chat messages in the window)

* (Kai|MentosKitty) is Fresh and Full of life!
(Kai|MentosKitty): X3
Tvorsk: Kitty - The Mewmaker.


PrincessHotcakes

  • Prettiest Princess
  • Moderator
  • Enchanted Weapons Expert
  • ****
  • Posts: 1320
  • I gurl
    • View Profile
Reply #1 on: September 22, 2011, 11:24:49 PM
*wonders...*  Memory saved by using Clear command vs just refreshing.  Would there be some kind of... leak with just using Clear all the time with the page just sitting there or no?

🏳️‍⚧️Princess is a contagious condition🏳️‍⚧️
She/her pronouns please ❤️


Tvorsk

  • That one dusty marsfox.
  • Server Manager
  • Mage of Caerreyn, Level 3
  • ****
  • Posts: 615
  • Anything can be solved if you'll try hard enough.
    • View Profile
Reply #2 on: September 23, 2011, 01:12:14 PM
*wonders...*  Memory saved by using Clear command vs just refreshing.  Would there be some kind of... leak with just using Clear all the time with the page just sitting there or no?

Depends On Your Browser(tm).

Generally, there are two separate things.

First, in all browsers that support this chat that I've seen, the "processing time" necessary to append a new line to the chat window is linear, or linear-plus. So, the more lines there are already, the "slower" the chat works. On my machine, it starts to lag noticeably with a few thousand lines in.

Second, as the nnumber of lines grow, images are posted, etc, amount of memory used expands.
Deleting the lines will probably not cause it shrink, but, at least in most of those cases, will let the browser re-use the memory again for new lines, so make it not grow more until you reach the previous chat's size again, more or less. Of course, crappier browsers may not free any memory and keep growing.
Chrome and IE8/9, which have a separate subprocess for each tab, can be made to free all chat-related memory by closing that tab and opening chat in a fresh one. That kills old process, creates a new one, and makes it start from the beginning again.

Thanks for reading,
-- Tvorsk

Quote
Draykin: And blast it, what is the world coming to when one cannot find a decent metal remix/cover of the Imperial March?