Want to Crash your computer?

Discussion and feedback on Construct 2

Post » Wed Apr 12, 2017 3:59 am

I ran into this and laughed a little.

Make a sprite then make these events.

For Each Sprite > Sprite Spawn a Sprite.

Then just watch your computer just bug out.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Wed Apr 12, 2017 10:51 am

You probably have no idea why it happens, do you ?

Well ... good for you.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Wed Apr 12, 2017 10:54 am

@Taser I ran into this and laughed a little.

Make a sprite then make these events.

For Each Sprite > Sprite Spawn a Sprite.

Then just watch your computer just bug out.


Preview that in the debugger and watch the object counter and you'll see the problem ;)
Last edited by Anonnymitet on Wed Apr 12, 2017 12:26 pm, edited 1 time in total.
B
57
S
24
G
14
Posts: 773
Reputation: 13,137

Post » Wed Apr 12, 2017 12:17 pm

I tried this, but only WebGL crashed. I prepared my computer to be shutdown... :cry:
Maybe an infinite loop. On mobile devices also it crashes ?
Image
B
6
S
2
Posts: 42
Reputation: 538

Post » Wed Apr 12, 2017 1:12 pm

Yes its an infinate loop. The foreach will happen until all the sprites are checked, but each check creates a new sprite so the loop never ends it just eats up your resources.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Wed Apr 12, 2017 2:38 pm

The loop isn't infinite, the game itself is an infinite loop. However, the nature of the event makes the loop grow exponentially (2^tickselapsed). So after a second at 60 fps you would theoratically have 1 152 921 504 606 846 975 new sprites if you begin with one. The system obviously can't cope with this and everything slow down to a crawl and hangs forever after a few ticks.
B
74
S
31
G
26
Posts: 999
Reputation: 20,208

Post » Wed Apr 12, 2017 3:25 pm

Create an endless loop on purpose then create a bug report and if the team doesn't respond immediately create 50 threads asking them the same questions over and over then if you get banned, go to Newgrounds and rant there. :lol:
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Fri Apr 14, 2017 12:21 am

@lennaert
Oh excuse me I didn't know we had an online SAS comment section bad ass here.
Maybe you can make a tutorial on how to be a witty douche to people making jokes.

@Anonnymitet
Yes bro I know why it happens. Honestly it's super simple and I just thought it was funny.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Sat Apr 15, 2017 11:50 pm

Taser wrote:@lennaert
Oh excuse me I didn't know we had an online SAS comment section bad ass here.
Maybe you can make a tutorial on how to be a witty douche to people making jokes.


Hit a nerf aye ....

Put That in an endless loop and you'll get a nervous breakdown.

:lol:
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Apr 21, 2017 2:20 am

lennaert wrote:
Taser wrote:@lennaert
Oh excuse me I didn't know we had an online SAS comment section bad ass here.
Maybe you can make a tutorial on how to be a witty douche to people making jokes.


Hit a nerf aye ....

Put That in an endless loop and you'll get a nervous breakdown.

:lol:

LOL!!!! " Hit a nerf " :lol: :lol: :lol: :lol: :lol: :lol: :lol:
B
23
S
8
Posts: 115
Reputation: 2,640

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests