Users browsing this thread: 1 Guest(s)
[WIP] Mine to the sky
#47
Update!

[Image: performance.png]

So I've been working my butt off to optimize the ImpactJS game engine (although now it barely looks like impact anymore...) and I've been able to squeeze out some major performance improvements. I've implemented an entity component system in various parts of my game and it's helped a lot for reducing the polymorphism in my objects. I've also replaced the old ImpactJS this.parent() calls with the more optimization friendly prototype way of calling methods.

I've still got some work to do figuring out a way of replacing Impact's Class.inject method with a more v8 friendly version, but currently what I have is a major improvement over what I used to have.

overall my game used to run at anywhere from 6ms to 10ms depending on what you were doing.
Now even with the most CPU intensive tasks I barely get above 5ms. (In the screenshot I turned on loading a buttload of coal on the map.) With the normal resource load my game runs at around 2-4ms with around 400 entities on screen at a time.

My next thing I'm going to try and tackle is possibly implementing Pixi.JS into my engine to replace Impact's Canvas drawing code. It will probably provide some further speed increases as well as give me a way to hook into WebGL for some nice shader effects.
[Image: IGBanner.png]
Reply
Thanked by: Kitsu


Messages In This Thread
[WIP] Mine to the sky - by Codestar - 09-12-2014, 08:38 PM
RE: [WIP] Mine to the sky - by MC Jimmy - 09-14-2014, 04:16 AM
RE: [WIP] Mine to the sky - by Codestar - 09-22-2014, 02:03 PM
RE: [WIP] Mine to the sky - by Koh - 09-25-2014, 11:41 AM
RE: [WIP] Mine to the sky - by JustinGameDesign - 10-11-2014, 04:59 PM
RE: [WIP] Mine to the sky - by Codestar - 02-04-2015, 04:29 PM
RE: [WIP] Mine to the sky - by Kelvin - 02-04-2015, 06:55 PM
RE: [WIP] Mine to the sky - by Codestar - 02-04-2015, 08:46 PM
RE: [WIP] Mine to the sky - by Kelvin - 02-04-2015, 09:45 PM
RE: [WIP] Mine to the sky - by Shade - 02-04-2015, 10:30 PM
RE: [WIP] Mine to the sky - by Kelvin - 02-05-2015, 09:50 AM
RE: [WIP] Mine to the sky - by Codestar - 02-05-2015, 02:50 PM
RE: [WIP] Mine to the sky - by Kelvin - 02-06-2015, 02:46 PM
RE: [WIP] Mine to the sky - by Codestar - 02-06-2015, 09:11 PM
RE: [WIP] Mine to the sky - by Navana - 02-07-2015, 02:53 AM
RE: [WIP] Mine to the sky - by Kelvin - 02-07-2015, 09:53 AM
RE: [WIP] Mine to the sky - by Codestar - 02-09-2015, 10:48 AM
RE: [WIP] Mine to the sky - by Kelvin - 02-09-2015, 11:55 AM
RE: [WIP] Mine to the sky - by Codestar - 02-09-2015, 12:08 PM
RE: [WIP] Mine to the sky - by Codestar - 02-13-2015, 09:46 AM
RE: [WIP] Mine to the sky - by Codestar - 02-24-2015, 08:30 PM
RE: [WIP] Mine to the sky - by Codestar - 02-26-2015, 09:37 PM
RE: [WIP] Mine to the sky - by Kelvin - 02-27-2015, 12:03 PM
RE: [WIP] Mine to the sky - by Codestar - 03-03-2015, 03:09 PM
RE: [WIP] Mine to the sky - by Codestar - 03-05-2015, 04:25 PM
RE: [WIP] Mine to the sky - by Codestar - 03-09-2015, 10:27 AM
RE: [WIP] Mine to the sky - by Kosheh - 03-09-2015, 11:28 AM
RE: [WIP] Mine to the sky - by Codestar - 03-09-2015, 12:39 PM
RE: [WIP] Mine to the sky - by Kami - 03-09-2015, 02:09 PM
RE: [WIP] Mine to the sky - by Codestar - 03-09-2015, 03:36 PM
RE: [WIP] Mine to the sky - by Codestar - 03-10-2015, 09:22 PM
RE: [WIP] Mine to the sky - by Silversea - 03-21-2015, 01:03 PM
RE: [WIP] Mine to the sky - by Codestar - 03-23-2015, 01:35 PM
RE: [WIP] Mine to the sky - by Codestar - 03-17-2015, 02:27 PM
RE: [WIP] Mine to the sky - by Codestar - 03-24-2015, 11:15 AM
RE: [WIP] Mine to the sky - by Kelvin - 03-25-2015, 08:14 AM
RE: [WIP] Mine to the sky - by Gwen - 03-25-2015, 09:47 AM
RE: [WIP] Mine to the sky - by Codestar - 03-25-2015, 11:32 AM
RE: [WIP] Mine to the sky - by Codestar - 03-26-2015, 08:45 AM
RE: [WIP] Mine to the sky - by Codestar - 03-30-2015, 10:40 AM
RE: [WIP] Mine to the sky - by Codestar - 03-31-2015, 09:24 PM
RE: [WIP] Mine to the sky - by Codestar - 04-03-2015, 01:34 PM
RE: [WIP] Mine to the sky - by Koh - 04-07-2015, 11:00 AM
RE: [WIP] Mine to the sky - by Kelvin - 04-04-2015, 11:18 AM
RE: [WIP] Mine to the sky - by LunchPolice - 04-07-2015, 06:39 PM
RE: [WIP] Mine to the sky - by Codestar - 04-23-2015, 07:54 PM
RE: [WIP] Mine to the sky - by Codestar - 04-27-2015, 03:32 PM
RE: [WIP] Mine to the sky - by Codestar - 04-29-2015, 03:28 PM
RE: [WIP] Mine to the sky - by Codestar - 05-11-2015, 11:05 AM
RE: [WIP] Mine to the sky - by Flare - 05-12-2015, 11:11 AM
RE: [WIP] Mine to the sky - by Codestar - 05-14-2015, 08:47 AM
RE: [WIP] Mine to the sky - by Codestar - 05-21-2015, 09:20 AM

Forum Jump: