PDA

View Full Version : Lag and cache clearing



n0551n3n0m1n3
04-14-2017, 12:14 AM
Looking to clear the cache to hopefully deter lag spikes after being running for a while. I tried ;e Lich.Cache.clear and got ;exec1 active ;exec1 exit. Did that do it? Its for a friend who experiences the issue.

Ososis
04-14-2017, 12:20 AM
No way man, if anonymous learns how to clear a cache, they will be unstoppable.

EDIT*
I put odds on you being who you are at 4:1

n0551n3n0m1n3
04-14-2017, 12:28 AM
I am a person who believes in freedom, and the right to privacy. I stand with the majority of those who unite under the name Anonymous. I don't condone some of the actions taken by off-shoot groups, but in a world where you are no longer safe to talk in your own home, your own car, without fear of persecution for something you say....actions need to be taken. I'm not some hard core 4N0N, or else I wouldn't need ask about cache clearing. I am simply one man among many, and I am proud to show it.

Ososis
04-14-2017, 12:32 AM
6:1

drauz
04-14-2017, 12:35 AM
http://www.animalhi.com/thumbnails/detail/20121026/anonymous%20my%20little%20pony%20bronies%201920x12 00%20wallpaper_www.animalhi.com_31.jpg

n0551n3n0m1n3
04-14-2017, 12:45 AM
8470

everan
04-14-2017, 10:01 AM
I am a person who believes in freedom, and the right to privacy. I stand with the majority of those who unite under the name Anonymous. I don't condone some of the actions taken by off-shoot groups, but in a world where you are no longer safe to talk in your own home, your own car, without fear of persecution for something you say....actions need to be taken. I'm not some hard core 4N0N, or else I wouldn't need ask about cache clearing. I am simply one man among many, and I am proud to show it.

W3 4R3 4N0NYM0U5.
W3 4R3 L3610N.
W3 D0 N07 F0R61V3.
W3 D0 N07 F0R637.

How come you guys don't know how to spell? I have a hard enough time reading small print, now I need to figure out that a 3 is an E. Argh. Does your name spell something? I've given up on it.

n0551n3n0m1n3
04-14-2017, 10:35 AM
W3 4R3 4N0NYM0U5.
W3 4R3 L3610N.
W3 D0 N07 F0R61V3.
W3 D0 N07 F0R637.

How come you guys don't know how to spell? I have a hard enough time reading small print, now I need to figure out that a 3 is an E. Argh. Does your name spell something? I've given up on it.

The spelling is to deter simple folk from deciphering.

And just curious...but can we maybe get back to the topic at hand? Maybe if tillmen or tgo01 could chime in I could get some smart people to respond.

SHAFT
04-14-2017, 10:54 AM
You'd think someone from anonymous could handle something as simple as cache. Yikes

everan
04-14-2017, 10:55 AM
The spelling is to deter simple folk from deciphering.

And just curious...but can we maybe get back to the topic at hand? Maybe if tillmen or tgo01 could chime in I could get some smart people to respond.

I am definitely simple :)

No clue about the cache stuff either, so hopefully someone will be able to help you with that.

n0551n3n0m1n3
04-14-2017, 11:19 AM
You'd think someone from anonymous could handle something as simple as cache. Yikes
but

..... I'm not some hard core 4N0N, or else I wouldn't need ask about cache clearing. I am simply one man among many, and I am proud to show it.

Axhinde
04-14-2017, 11:48 AM
I think V for Vendetta is playing on Showtime right now. Better hurry up before you miss it.

n0551n3n0m1n3
04-14-2017, 12:02 PM
I think V for Vendetta is playing on Showtime right now. Better hurry up before you miss it.
I've been looking for a reason to use this.
8471

Ososis
04-14-2017, 04:41 PM
We are farmers.


https://m.youtube.com/watch?v=Xji7Gy6RiiY

velderan
04-14-2017, 08:12 PM
Ayyyyy, good question, would love an answer instead of trolling or whiny comments from people who can't read l33t.

Ososis
04-14-2017, 08:24 PM
Ayyyyy, good question, would love an answer instead of trolling or whiny comments from people who can't read l33t.

I would love a question not posted by MacGyver running through a proxy. But the world is full of disappointment isn't it?

Warriorbird
04-14-2017, 08:29 PM
We are farmers.


https://m.youtube.com/watch?v=Xji7Gy6RiiY

Three Loco makes most threads better.

Richaard
04-14-2017, 08:37 PM
I would love a question not posted by MacGyver running through a proxy. But the world is full of disappointment isn't it?

You mean M4C6YV3R.

Wyrom
04-14-2017, 08:44 PM
Whether this is an alt account or not, is Lich caching to the point to cause lag spikes? We've been having some players who are experiencing issues with lag and crashes that we cannot solve from our end. Caching data from something like Reim would definitely explain some of these issues, but I'm just not aware of all the features of Lich. I've unfortunately been on staff longer than it has existed.

velderan
04-14-2017, 08:52 PM
@Wyrom, it only caches data experienced for that client iteration, so people running Reim would store all that, but Lich users on Teras would not, for example. It does, however, store every single line that client has received or produced since login. It dumps the cache between logins, and it pulls the cache out of RAM every 2 minutes and dumps it in a temp file somehow somewhere.

n0551n3n0m1n3
04-14-2017, 10:29 PM
This is not macgyver, I can promise you that. I can verify through other accounts that I am in no way shape or form a troll, scammer, or any such leecher. I am however a devious degenerate with a good sense of humor and a mind in between my ears that works most of the time

Velfi
04-14-2017, 11:10 PM
This is not macgyver, I can promise you that. I can verify through other accounts that I am in no way shape or form a troll, scammer, or any such leecher. I am however a devious degenerate with a good sense of humor and a mind in between my ears that works most of the time

http://i.imgur.com/biyJI0k.gif

n0551n3n0m1n3
04-15-2017, 01:38 AM
http://i.imgur.com/biyJI0k.gif

Believe what you will. Time can only prove that I am correct. I don't post stupid shit. I don't ask random questions. The only reason this thread has gotten so far off topic is because I openly support anonymous. If tillmen or one of the other script writers of legend cares to chime in, I would greatly appreciate it. If not, guess this thread is dead and we can all move on.

TheBastardOfStark
04-15-2017, 01:42 AM
I can verify this is not macgyver. Not that I'm very well known, but my history is good.

Ososis
04-15-2017, 01:43 AM
Nobody cares that you support anonymous. Well, your fangirling is a little silly but whatever. What derails the thread is that this is obviously SOMEONE's alt. And as someone who seems to have a decent handle on the PC goings on, you should know exactly why we assume what we do about another alt account.

n0551n3n0m1n3
04-15-2017, 01:56 AM
Nobody cares that you support anonymous. Well, your fangirling is a little silly but whatever. What derails the thread is that this is obviously SOMEONE's alt. And as someone who seems to have a decent handle on the PC goings on, you should know exactly why we assume what we do about another alt account.

Yes this is a new account. I played a couple years ago and the email and password I used were lost in the shuffle of moving twice and changing computers. I lost a bunch of stuff IG as well but that isn't that serious. I also don't like to be well known, as I enjoy my privacy. If anyone cares enough to ask I can send them a PM with my old account name and they can check those postings to see I am not one of the scammers or trolls. I have enjoyed gemstone since msn gaming zone days and I always remembered the community being a bit less hostile.

rolfard
04-15-2017, 02:00 AM
I always remembered the community being a bit less hostile.

W3 D0 N07 F0R61V3

Ososis
04-15-2017, 03:27 AM
Disappointed you aren't MacGyver. I had a perfect score up to this point. But I still find it suspect that some opinion of your last profile caused you to feel the need to make an alt. Usually that choice is not precipitated by everyone thinking you are super legit.

But, I'll let it go. To be honest it wasn't your original question that caused suspicion, but the subsequent nonsense was pretty in character.

Tillmen
04-15-2017, 09:28 AM
Absent any scripts, Lich caches 400 game lines and 100 commands from the frontend. The game lines are XML, which come a lot more often than you notice while looking at the frontend. If you clear that buffer, it will refill almost immediately. The buffer for frontend commands is likely longer than any script is going to use, but each command is generally short. Clearing either of these isn't going to have any noticeable effect except possibly making a script misbehave.

In addition to those two buffers, each running script also has two similar buffers of its own, unless the script says it doesn't want them. The game buffer for scripts is half the size (200 lines), and may have XML or not depending on what the script asks for. If you have a couple hundred scripts running, I could see how this might cause some lag. However, you're not going to see any increase in lag due to being logged in for a long time.

A script isn't limited to just the buffers provided to it. It can create any number of buffers for any purpose and handle them poorly to create a memory leak.

One way Lich can create lag is by parsing a container with a couple hundred items in it. Any time you look in the container, or put something in it, or take something out of it, Lich has to parse 4 XML tags and 3 strings for each item in the container. This won't be an issue once I finish Lich 5, if I ever get time to do that.

Scripts can create lag by using DownstreamHooks. These are little bits of code that are evaluated for each game line that comes in, and the game line doesn't reach the frontend until the hook finishes. Generally these hooks are quick, taking perhaps 0.0001 seconds to finish. Some scripts, however, will use hooks in a way they weren't intended, such as the rnum script. rnum will search the map database to find the room number of your current room every time you change rooms. Most people either don't notice the increased lag, or they think it's worth it to be able to scroll up and see what room number the dead guy was in or where they dropped their weapon. However, if your computer takes longer than most to find the room number, this could cause some noticeable lag. Or you could have a script that's trying to do even more than that in a hook.

Having said all that, your problem is probably caused by Stormfront. It has a long standing memory leak. Switch to the WizardFE and see if the problem goes away.

Tillmen
04-15-2017, 09:31 AM
...It does, however, store every single line that client has received or produced since login. It dumps the cache between logins, and it pulls the cache out of RAM every 2 minutes and dumps it in a temp file somehow somewhere.

That's the way Shaelun's version worked. I think I got rid of that with my first rewrite.

n0551n3n0m1n3
04-15-2017, 11:48 AM
Ok perfect. Thank you tillmen for the clarification. I shall check with them on what scripts they run and see if maybe its that, or it could just be the stormfront memory leak. I appreciate your taking the time from maintaining and updating Lich to answer my question.