Kode / Kha

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

[html5] glBufferSubData reduces performance in Safari #1269

Closed sh-dave closed 2 years ago

sh-dave commented 3 years ago

Describe the bug

After commit https://github.com/Kode/Kha/commit/bb7176220496c78e95d86c8cf44959c5d900138f our app runs like :shit: on Safari Mobile. Every build before the mentioned commit does run fine.

Execution Environment:

sh-dave commented 3 years ago

from IRC about parrot mark

the normal 10k parrots run fine with reverted commit (5-10 ms per frame) and choppy with latest kha (wildly fluctuating 10-20ms)

RblSb commented 2 years ago

I see similar 40% frame time increase on macOS Safari for g2. Chrome/Firefox actually works same with current change. Maybe using bufferData in if (webkit) can be a solution?

RobDangerous commented 2 years ago

Directly inside the backend? Silly but if it works, let's do it.