Too many events?

Discussion and feedback on Construct 2

Post » Sat Jun 22, 2013 10:19 pm

I just passed 600 events on a game in progress and Im experiencing some lag in the program. It keeps freezing for a couple of seconds, making it hard get some work done. Does this have anything to do with the number of events? It started on 599 events,using 47 Mb of memory. Or is it something else? Have anyone else got this problem?
B
5
S
1
G
1
Posts: 15
Reputation: 841

Post » Sun Jun 23, 2013 12:14 am

My game has about 3500 events and is working just fine. It could be something else
Image
B
64
S
17
G
8
Posts: 531
Reputation: 12,849

Post » Sun Jun 23, 2013 12:46 am

Might be too many objects/giant textures in your layouts. Like notion, my projects have thousands of events with no lag! Maybe check for graphic driver updates?Tokinsom2013-06-23 00:51:48
Image
B
237
S
28
G
13
Posts: 1,785
Reputation: 18,456

Post » Sun Jun 23, 2013 2:15 am

My game has 1000+ events and 60mb of memory usage, I get sometimes when clicking, I notice the Layers toolbar goes funny and that when certain layouts with less Layers are selected, there's less lag. Bit random but yeah.
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Wed Jul 17, 2013 10:00 am

Ive starting saving the projekt as a caproj instead of a capx file. Seems to have reduced the problem a bit, but not completely.
B
5
S
1
G
1
Posts: 15
Reputation: 841

Post » Wed Jul 17, 2013 5:40 pm

how many tabs are open? (layouts, event sheets...)
how many objects(+/-) you have per screen/layout?
B
48
S
5
G
6
Posts: 210
Reputation: 6,277

Post » Wed Jul 17, 2013 5:55 pm

@Jase00 you get that issue too? Aha, so it's not just me!
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,644

Post » Thu Jul 18, 2013 6:08 am

@sqiddster Yeah! I looked into it and found a workaround though yesterday.
I think when you open an event sheet or "Loose focus on an event sheet thats opened, like when adding an action, then returning focus", it will load each layout that has the eventsheet loaded (for reasons I'm not sure). I'm guessing you also have lots layouts with lots of layers and lots of sprites placed around, so when you even click a single layout thats not loaded, it will take 1 second to load.
Now; since the event sheet is loaded for each layout, that means every layout that has the event sheet will cause an extra +1 seconds of waiting time when you focus on the EventSheet. For me, it comes to about 5 seconds (It seems faster the less time Construct 2 has been open)

SO THE IDEA IS, have an eventsheet that literally just contains an "include" sheet to your MAIN eventsheet that was originally on all tha layouts, then on each layout, make sure it loads this new eventsheet.
After doing this, It removed ALL the lag from clicking onto the eventsheet that I use, and the "Include" eventsheet lags instead (but you'll never need to click it, so hooray )
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Thu Jul 18, 2013 2:42 pm

@Jase00 Yep, I'm in the same situation. Cool workaround.

I tried to file a bug report about this a while back, but it was closed because I couldn't attach my capx. Anyone have a large enough capx they'd be willing to send to Scirra?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,644

Post » Thu Jul 18, 2013 3:35 pm

@squiddster , you reminded me of a bug I reported a while back.
If you double click on a layout and during that loading glitch, hover your mouse cursor over any eventsheet, it would crash Construct 2. Ashley suggested for me to email my project but I forgot to empty it out from third-party plugins and I never sent a cleaner version, yet mysteriously, this particular crash seems to be fixed since an update.
Here's the old bug report.
http://www.scirra.com/forum/r136-reproducable-crash_topic70218.html?KW=

I always thought I was the only one getting the weird loading flickeryness so I never thought to report it, but the crash was a bad thing to me. Maybe it's to do with a computers processor, so Ashley would never come across this bug due to his computer being highly powerful and loading everything instantly :P Probably not. Hmm, hopefully this can be explained anyway.
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Next

Return to Construct 2 General

Who is online

Users browsing this forum: odiusfly and 3 guests