Deban Posted May 30, 2014 Share Posted May 30, 2014 Hello I used to be an AS3 developer. I started a new project, so... why not try something new? I try different languages and frameworks, all for the web. So here are some bunny benchmarks. I know pixi has it's own, but most benchmark usually test only rendering power and not processing power. What can I say?You rule!Not only in rendering power, but more important in processing power. hubert and patrickfabrizius 2 Quote Link to comment Share on other sites More sharing options...
d13 Posted May 31, 2014 Share Posted May 31, 2014 Thank you for that, I'm also an AS3 escapee. Could you explain the difference in the Genome numbers: rendering: 92,000 vs processing: 4,200? Quote Link to comment Share on other sites More sharing options...
Deban Posted May 31, 2014 Author Share Posted May 31, 2014 I gave another look at the code and made an improvement, wasn't big... but now it render 5,100 bunnies with ~50 fps Let's see... Flash always was slow. But then AIR came and there was some mayor improvement with the rendering power with stage 3d. Problem is that the improvements where almost unilateral to stage 3d, and as4 never came along Genome use stage 3d at its full potential, and it uses Haxe to minimize the processing overhead. But when it comes down to your as3 code, there isn't much to be done. AS3 will always be the bottleneck. This is what make the difference:public function CheckCollitions():void { var colliding:Boolean; var bunny1:Bunny; var rectangle1:Rectangle = new Rectangle(0, 0, 10, 10); var rectangle2:Rectangle = new Rectangle(5, 8, 10, 10); for (var i:int = 0; i < bunnies.length; i++) { bunny1 = bunnies[i]; for (var j:int = 0; j < 100; j++) colliding = Collition.Rectangles(rectangle1, rectangle2); }}The Collition.Rectangles is a basic axis aligned box collition detection, and it's even inlined. Edit: I thought that maybe the Rectangle that came with flash was using getters and setter, and the function was making extra slow. But no, I create a custom rectangle class and it's the same performance (even a little worse). d13 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.