Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

HTML5 Performance Issue #1341

Closed barisyild closed 3 years ago

barisyild commented 3 years ago

Describe the bug The Bunnymark test works pretty badly on the html5 target but is pretty fast in the old version.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github.com/dmitryhryppa/frameworks_test/tree/master/bunnymark/kha'
  2. Build Project
  3. Spawn 100k bunnies
  4. See frame rate
  5. See old build of bunnymark (uses old kha) 'https://lemon07r.github.io/kha-html5-bunnymark/'

Expected behavior 100k rabbits should give 50-60 fps.

Screenshots

Dev KHA image image

Old KHA image image

Execution Environment:

Additional context I think the problem is caused by using DataView instead of Float32Array.