Col-E / Col-E/GLCanvasFX

Possible optimization

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
10
Forks
3
PR merge metrics
No merged PRs in 30d

Description

From: Clement Breaker

> Am just wondering if this could be made more efficient by using `javafx.scene.image.PixelBuffer` - would it allow you to arrange for `ReadPixels` to put the OpenGL image directly into a `PixelBuffer` that is used by a `WritableImage`? Then this means you could avoid the overhead of using an intermediate buffer that you have to first write into using `glReadPixels` and then read from using `setPixels`?

Patch: https://gist.github.com/Col-E/b6427eade7410663c97ec0b5a5f7fc02

---

I have not yet done digging into whether or not this has measurable gains. Opening this so I don't forget about this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked patch and inspect the existing ReadPixels path, especially the use of glReadPixels and setPixels. Review JavaFX PixelBuffer and WritableImage integration, then measure whether avoiding the intermediate buffer provides a measurable gain. Done means documenting the benchmark result and, if beneficial, implementing the verified approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, desktop, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.