lime icon indicating copy to clipboard operation
lime copied to clipboard

Fix Emscripten

Open barisyild opened this issue 2 months ago • 2 comments

Fix Emscripten compile & rendering issues, implement HTTP requests, remove assets from virtual file system and remove curl and efsw to reduce file size

Emscripten Status

  • Rendering
    • *Rendering [!]
    • Auto Size Canvas [X] -> [✓]
  • Network
    • HTTP Request [X] -> [✓]
  • Compile
    • Compile [X] -> [✓]
    • Optimizations [X] -> [✓]
  • File Size Optimizations
    • Removing curl and efsw from Build [X] -> [✓]

*Some colors are wrongly rendered.

barisyild avatar Dec 08 '25 18:12 barisyild

Only rendering issues remain:

  • Some areas are not being rendered
  • Some areas are rendered with incorrect colors

barisyild avatar Dec 10 '25 10:12 barisyild

Only rendering issues remain:

  • Some areas are not being rendered
  • Some areas are rendered with incorrect colors

Even though the project is using WebGL2 (OpenGL 3), this might be happening because the API being used is actually WebGL (OpenGL 2). I’m not very familiar with the behavioral differences between these two versions.

https://github.com/openfl/lime/blob/17fe04721d8bc4c8b18c1e3d4983b9371326e72d/project/src/graphics/opengl/OpenGL.h#L13-L19

barisyild avatar Dec 10 '25 10:12 barisyild