Discuss Scratch

Hxck
Scratcher
4 posts

Major Lag Spikes

My browser / operating system: ChromeOS 11647.154.0, Chrome 73.0.3683.114, No Flash version detected

While people played my game, they randomly experienced major lag spikes that would stop the game for about 5 seconds. I do not know if it is my code that is the problem, but you can check my code for problems. Please fix this as soon as possible. I am making a game as a project for my ELA class. It is due at the end of May.

https://scratch.mit.edu/projects/303019765/
imfh
Scratcher
1000+ posts

Major Lag Spikes

I don't notice any lag spikes. There is, however, delay at the beginning of the project right after it starts. If this is the problem you are having you will probably get better help in the Help With Scripts forum.
mlcreater
Scratcher
1000+ posts

Major Lag Spikes

I don't think this is your code. This happens to me also. Not quite for 5 seconds though. When I measured, they occurred every 10 seconds for 2¼ seconds each. Here is my project that detects it:

(The address is https://scratch.mit.edu/projects/290703554/ )


Edit: BTW My browser / operating system: ChromeOS 11647.104.0, Chrome 73.0.3683.88, No Flash version detected
What is imfh's? Maybe it's because of ChromeOS?

Last edited by mlcreater (April 26, 2019 01:54:57)

banana439monkey
Scratcher
1000+ posts

Major Lag Spikes

imfh wrote:

I don't notice any lag spikes. There is, however, delay at the beginning of the project right after it starts. If this is the problem you are having you will probably get better help in the Help With Scripts forum.
Disagreed, there's a possibility that it's Scratch causing lag at the start. What operating system and browser are you using?

Banana
imfh
Scratcher
1000+ posts

Major Lag Spikes

banana439monkey wrote:

imfh wrote:

I don't notice any lag spikes. There is, however, delay at the beginning of the project right after it starts. If this is the problem you are having you will probably get better help in the Help With Scripts forum.
Disagreed, there's a possibility that it's Scratch causing lag at the start. What operating system and browser are you using?

Banana
My browser / operating system: Windows NT 10.0, Chrome 73.0.3683.103

No, the delay I mentioned is caused by a 5 second wait block before the red player is shown. This is possibly intentional, however.

There were a couple times I noticed added delay between the red player's shots. However, I think this was caused by the red player being on the side of the screen and the shot touching the edge right when it was cloned.

I definitely didn't see any major lag spikes as I moved around in a circle and it worked smoothly the entire time.
banana439monkey
Scratcher
1000+ posts

Major Lag Spikes

I really need a Chromebook…

CNR, no lag here. My browser / operating system: Windows NT 10.0, Chrome 73.0.3683.103, No Flash version detected

Banana
Ashton143mbms
Scratcher
2 posts

Major Lag Spikes

I tested the freezing monitor game https://scratch.mit.edu/projects/290703554/ and my scratch freezes about every 6 to 7 seconds. It does it on every game I play, or when I am making a game. I am running scratch on the third-gen laptop and I had never had this problem on any websites.
Teeterboy1
Scratcher
5 posts

Major Lag Spikes

On my Chromebook, scratch will have a lag spike every single time a button is pressed, but whyyyyy???
Wainggan
Scratcher
500+ posts

Major Lag Spikes

Sorry for necroposting, but I really need this to stop. I have been just putting up with this for 1 and a half years, and I am really tired of these freezes.
How do you stop this? Why is this happening?

Last edited by Wainggan (Oct. 19, 2020 19:15:52)

imfh
Scratcher
1000+ posts

Major Lag Spikes

Wainggan wrote:

Sorry for necroposting, but I really need this to stop. I have been just putting up with this for 1 and a half years, and I am really tired of these freezes.
How do you stop this? Why is this happening?
Is the issue occurring on a specific project?
Wainggan
Scratcher
500+ posts

Major Lag Spikes

No, it is happening everywhere. Any project on Scratch will do this, and interestingly, it does it in TurboWarp as well.
Wainggan
Scratcher
500+ posts

Major Lag Spikes

Let's just give this a BUMP
DubstepCat_Scratches
Scratcher
34 posts

Major Lag Spikes

Hxck wrote:

My browser / operating system: ChromeOS 11647.154.0, Chrome 73.0.3683.114, No Flash version detected

While people played my game, they randomly experienced major lag spikes that would stop the game for about 5 seconds. I do not know if it is my code that is the problem, but you can check my code for problems. Please fix this as soon as possible. I am making a game as a project for my ELA class. It is due at the end of May.

https://scratch.mit.edu/projects/303019765/

The lag spikes could be due to an extension taking gpu/cpu. Most likely Chromebook users may have a monitoring extension that causes them to lag out.
Wainggan
Scratcher
500+ posts

Major Lag Spikes

I looked at my task manager, and it doesn't seem like I am running out of cpu/gpu.
imfh
Scratcher
1000+ posts

Major Lag Spikes

Wainggan wrote:

I looked at my task manager, and it doesn't seem like I am running out of cpu/gpu.
Look at the Google chrome task manager instead. Each tab can only use part of the cpu, not the whole thing. If you look at the chrome task manager (right click the top bar of the Google chrome program and click task manager) it will show a percentage adjusted to show roughly how close the tab is to running out of the cpu it can use.
Wainggan
Scratcher
500+ posts

Major Lag Spikes

Bump

It gets really terrible when there's a lot of scripts
mlcreater
Scratcher
1000+ posts

Major Lag Spikes

imfh wrote:

Wainggan wrote:

Sorry for necroposting, but I really need this to stop. I have been just putting up with this for 1 and a half years, and I am really tired of these freezes.
How do you stop this? Why is this happening?
Is the issue occurring on a specific project?

Wainggan wrote:

No, it is happening everywhere. Any project on Scratch will do this, and interestingly, it does it in TurboWarp as well.
Also at llk.github.io and at catblocks-archive.glitch.me
Duckles1224
Scratcher
21 posts

Major Lag Spikes

Hxck wrote:

My browser / operating system: ChromeOS 11647.154.0, Chrome 73.0.3683.114, No Flash version detected

While people played my game, they randomly experienced major lag spikes that would stop the game for about 5 seconds. I do not know if it is my code that is the problem, but you can check my code for problems. Please fix this as soon as possible. I am making a game as a project for my ELA class. It is due at the end of May.

https://scratch.mit.edu/projects/303019765/

I also am on Chrome OS. I experience the same issues.
TheGamingM
Scratcher
13 posts

Major Lag Spikes

Yeah, I don't know why (Maybe because of all of the code but sometimes the game runs fine), but my levels just get more and more “lagged back”, and the syncing gets worse. Is there a problem with the actual site, or do I just absolutely suck at coding like Yandere Dev?
SCMC54
Scratcher
100+ posts

Major Lag Spikes

It's because of a chromebook extension called go-guardian. it checks every scratch block, which pauses the site for 4-6 seconds every 10 seconds. There's nothing you can do, really. it's a school installed extention to chrome, so it can't be fixed unless goguardian or scratch does something about it.

Powered by DjangoBB