Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting things up #1

Open
16 of 35 tasks
almarklein opened this issue Oct 24, 2024 · 1 comment
Open
16 of 35 tasks

Setting things up #1

almarklein opened this issue Oct 24, 2024 · 1 comment

Comments

@almarklein
Copy link
Member

almarklein commented Oct 24, 2024

Setting up

  • Use git-filter-repo to clone wgpu-py, but only the gui stuff (wgpu/gui/*.py and tests/test_gui_*.py).
  • Create repo at Github 👋 and push the reduced clone.
  • Move wgpu/gui to rendercanvas.
  • Populate repo with readme, gitginore, pyproject etc.
  • Make it work with from rendercanvas import WgpuCanvas
  • Add the examples.
  • Activate CI.
  • Activate RTD.

Moving forward

  • Add docs enough so we can do the below.
  • See if I can get the tests running without changing them too much.
  • Open Refactor wgpu.gui for scheduling wgpu-py#618 as a pr here, and get it merged.
  • Rename WgpuCanvas to RenderCanvas.
  • Better grouping methods in the backends.
  • Fix tests, and activate in CI.
  • Get rid of other references of "wgpu" and "gui"
  • Make docs work and clean them up.
  • Rename and clean up examples.
  • Merge the two internal utils modules.
  • Use __all__ in the modules.
  • Make that Canvas subclasses only need to implement private methods?
  • Check todos.

More short term work

  • Remove asyncio.get_event_loop() (its being deprecated).
  • Handle sigint.
  • Animate events.
  • Allow draw_func to be an async function.
  • Can we move present() out of CanvasContext()?
  • Register the draw function as a draw event handler instead of with request_draw()?
  • Allow requesting a draw by setting a field in the event object?
  • Tracking statistics (track time spent on different things). Plus visualizing them. Maybe later.
  • Store methods as a weakref-to-object, plus method name. See pysignal

Adoption

  • Move issues from wgpu-py repo to here.
  • Add rendercanvas version to diagnostics of wgpu-py.
  • Use rendercanvas downstream.
  • Deprecate wgpu.gui.
  • Remove wgpu.gui.
@almarklein almarklein pinned this issue Oct 24, 2024
@almarklein
Copy link
Member Author

almarklein commented Oct 25, 2024

Screenshot 2024-10-25 at 11 27 43 Screenshot 2024-10-25 at 11 26 57

@almarklein almarklein mentioned this issue Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant