pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
319 stars 36 forks source link

use hardware acceleration for blitting #146

Closed tigercoding56 closed 8 months ago

tigercoding56 commented 8 months ago

i tested both the pyglet and the pygame sample code on a older device (around 2010 chromebook) , the pyglet sample runs smooth in pygbag , the pygame demo struggles a bit . i already have a large codebase using pygame (as i developed it first and worried about the web later) would it be possible to hardware (webgl) accelerate some pygame functions

pmp-p commented 8 months ago

i don't intend to do that until wasm2/webgpu are everywhere. This should match pygame-ce going on SDL3.

Meanwhile you may want to look at ZenGL or Panda3D and use GLSL 300 (webgl2)

pyglet and moderngl won't be fully supported (either by me or actual mainteners)

tigercoding56 commented 8 months ago

i don't intend to do that until wasm2/webgpu are everywhere. This should match pygame-ce going on SDL3.

Meanwhile you may want to look at ZenGL or Panda3D and use GLSL 300 (webgl2)

pyglet and moderngl won't be fully supported (either by me or actual mainteners)

thank you , ended up streaming game via replit instead, should be good enough for itch io demo