It would make sense for a project to lag when doing a bunch of sine and cosine equations. It would also make sense for a project to lag with a bunch of clones; but in Hopscotch, stuff only lags when you make it really really big. What’s up with that?
Your username: Yusamac205
What kind of device are you using?: iPad Pro 11” 2018
1 sentence description of the problem (I was doing _________, and then __________ happened): I was making a bunch of clones of text really big and Hopscotch lagged at a crazy rate
Steps that the Hopscotch team can take to reproduce my problem every time:
Make and object with a lot of clones
Set the size (or width and height) to something giant
Alright, so I know this doesn’t look like a big deal at first glance, so let me explain:
Hopscotch doesn’t lag when I do a bunch of equations on clones or when I make them constantly move. It only lagged after I made the object bigger. This is an optimization problem with the blocks that control scale and it’s probably what lags up a lot of good games on Hopscotch
its not like i’m going to steal your code, i’m just looking for reasons for lag.
here is the best problem finder.
change something in those blocks, and then play it.
if a white screen comes up, its your internet
if not, it’s hopscotch
When you create clones in that project, is there an end? Like, does it stop when the # of clones created reach 300? I know that if there’s no limit, it keeps on creating clones until it hits the max number of objects, which can cause a LOT of lag for the entire project, even if said clones aren’t doing anything.
You can create an object that records the number of objects in the project to see if that’s the issue.