Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


eduardo_costa

Member Since 18 Jun 2013
Offline Last Active Sep 21 2014 02:16 PM

Topics I've Started

[android] Weird performance for simple scene

02 September 2014 - 01:07 PM

Hey all!
I'm developing an engine in both WebGL and Android native using Haxe.
There is some strange performance issue happening though.

Running a simple example with 300 cubes in WebGL it runs at 60fps in Chrome Desktop and 30fps in Chrome Beta in my Nexus4.

300 cubes demo.
https://dl.dropboxusercontent.com/u/...0_1/index.html

Now. I'm also compiling the same demo in Android Java and generating an APK.
But the APK is running at 20-30fps top.
Considering that it is native, the performance shouldn't be above WebGL at least?

* If requested I can provide the APK too. *

## Extra Info ##

- Nexus4 Phone with latest android update.

- Haxe compiles its "Float" type into Java's "double".
- Cube shader is alpha blended and have 'discard' commands.
- GLSurfaceView 'isHardwareAccelerated' flag returns true.
- Tracing the GLES calls during render I'm issuing just a Uniform(WorldMatrix) + DrawArrays(TRIANGLES) per Cube (so 300 total)


Haxe WebGL Engine

06 May 2014 - 01:52 PM

Attached File  Untitled-1.jpg   78.63KB   1 downloads

Hi!


Today I opened my site to show some examples and features of the Haxor Engine a Haxe based engine to develop applications on HTML5 and all its technologies (Canvas, WebRTC, WebSockets, WebGL,...)
 
 
I could explain all features and give more details, but it would turn out TL;DR;
 
The website contains examples and more information.
 
Tomorrow May 7th I'll open the haxelib and mercurial repository for everyone to take a look at the engine!
 
Feel free to follow me on Facebook [http://www.facebook.com/HaxorEngine] and @HaxorEngine
 
Thank you!

PARTNERS