Very slow gameplay (2 frames/second)


#1

I think some recent introduced changes in codecombat source cause huge gameplay slow down.
Does anyone have similar issues?

In my case I’m running f.ex. Zero Sum level (or other complex levels from Mountain or Desert) on latest Chrome on Mac or Firefox and it looks like very bad stop motion.

It seems not only animation is slow but buffering (computation) also. It was fast enough two days ago.

Here is last part of the log from Zero Sum submit:
2016-05-13 22:07:44.026 Angel.coffee:56 |Urðr’s Woodhouse| Loaded 363 of 960 (+4871ms)
2016-05-13 22:07:48.808 Angel.coffee:56 |Urðr’s Woodhouse| Loaded 415 of 960 (+4808ms)
2016-05-13 22:07:53.834 Angel.coffee:56 |Urðr’s Woodhouse| Loaded 478 of 960 (+4904ms)
2016-05-13 22:07:53.836 Angel.coffee:56 |Urðr’s Woodhouse| The world ended in won on frame 527
2016-05-13 22:07:53.836 Angel.coffee:56 |Urðr’s Woodhouse| The world ended in lost on frame 527
2016-05-13 22:07:58.693 Angel.coffee:56 |Urðr’s Woodhouse| And it was so: (505.120ms per frame, 527 frames)
Simulation : 266198ms
Serialization: 72ms
Delivery : 4100ms
2016-05-13 22:07:58.831 world.coffee:551 First changed frame is 84 with hash 2534141683.135226 compared to 2534141704.8031406


#2

I’ve seen the same on a few levels (Library Tactician and Steelclaw Gap). I’m also using Firefox on OS X.

I put a self.wait(1) statement in at the end of my main loop, which seems to help the code execute, rather than just sit trying to crunch the logic, It’s still been a bit clunky though.


loaded 25 files, 1665 KB app.js:2569:1
Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead.
Populated defaults for Level Library Tactician in 43ms app.js:713:17
|Hera’s Pam| Worker initialized after 1669ms library-tactician:43:10
|Hera’s Archer| Worker initialized after 1821ms library-tactician:43:10
: unreachable code after return statement aether.js:6682:0
: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create aether.js:84:0
: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create aether.js:84:0
Assigned power 85 to wave ogres with difficulty 0 library-tactician line 6390 > eval:198:23
World has been initialized from level loader. library-tactician:851:8
Hera: Let there be light upon Library Tactician! (preload: false) library-tactician:404:1
|Hera’s Archer| Generated random seed 6249993825 of type submissionCount from sessionIDs 573476b1d8709f1f0029185e submissionCount 2 library-tactician:43:10
|Hera’s Archer| Assigned power 85 to wave ogres with difficulty 0 library-tactician:43:10
: unreachable code after return statement aether.js:6682:0
: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create aether.js:84:0
|Hera’s Archer| Loaded 2 of 975 (+1402ms) library-tactician:43:10
|Hera’s Archer| Loaded 20 of 975 (+1197ms)

|Hera’s Archer| Loaded 893 of 975 (+1390ms) library-tactician:43:10
|Hera’s Archer| The world ended in won on frame 946 library-tactician:43:10
|Hera’s Archer| Loaded 911 of 946 (+1351ms) library-tactician:43:10
|Hera’s Archer| The world ended in won on frame 946 library-tactician:43:10
|Hera’s Archer| Loaded 929 of 946 (+1231ms) library-tactician:43:10
|Hera’s Archer| The world ended in won on frame 946 library-tactician:43:10
SuperModel for Level loaded in 85489 ms library-tactician:793:69
Populated defaults for User FinalDuty in 14ms app.js:713:17
|Hera’s Archer| And it was so: (79.708ms per frame, 946 frames)
Simulation : 75404ms
Serialization: 463ms
Delivery : 357ms library-tactician:43:10
Level unveiled after 90.18s


#3

same problem when i use hero.move or command other units to move.

MacOsX + latest Chrome.