httpgd icon indicating copy to clipboard operation
httpgd copied to clipboard

GPU rendering

Open nx10 opened this issue 3 years ago • 0 comments

Is your proposal related to a problem?

Raster graphics rendering is currently only possible via Cairo, which is CPU based. While there is a OpenGL based backend for Cairo it seems to be difficult to compile on Windows and not very optimized.

Describe the solution you'd like

Implement a custom low-level GPU renderer to accelerate raster graphics generation. OpenGL 3.x should have the best adoption rate with acceptable features. (Vulkan would be great but is definitely out of scope for now.)

Describe alternatives you've considered

  • Cairo OpenGL backend (cross platform difficulties, not optimized)
  • Skia (massive overhead, nightmare to compile)

Additional context

It might make sense to encapsulate the low level code in a seperate package to keep the httpgd repository smaller.

nx10 avatar Sep 17 '21 13:09 nx10