linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.24k stars 93 forks source link

Some questions regarding this project #515

Closed Raj2032 closed 2 years ago

Raj2032 commented 2 years ago

Hi I have some questions regarding this project:

  1. Is there a Discord server?
  2. Does it use GTK or is it its own thing?
  3. Does it do multithreading in the backend?
  4. Does it use WGPU?
  5. Is the API similar to processing lang
  6. Is it immediate, immediate with cached features or retained?
xStrom commented 2 years ago

Are these questions actually about piet - the repository here? They seem a bit more focused on UI, so perhaps you meant to ask them in the druid repository that uses piet as a dependency?

  1. No Discord server. There is zulip chat though.
  2. Piet doesn't really use GTK, although it uses adjacent tech for Linux, specifically Cairo.
  3. Not really.
  4. No.
  5. I'm not familiar with Processing, but looking at the reference there are some similarities in the API capabilities.
  6. Retained.
Raj2032 commented 2 years ago

@xStrom Hey mate thanks for your response.

Are these questions actually about piet - the repository here?

Yes I actually meant it for this repo.

In regards to multithreading, are there any plans to do multithreading in the future?

Also is there support for Android as well?

xStrom commented 2 years ago

There is no current support for Android or iOS.

As for multithreading, there are no specific plans right now. Also, the multithreading support would be thread safety in piet objects/methods. The backends aren't developed by us. Direct2D, CoreGraphics, Cairo, etc. They might do some multithreading in their implementations, but that's a very deep implementation detail that's not really relevant to piet.

The piet related active development is currently happening in piet-gpu which is a brand new GPU based system. How it relates to standard piet and its future is currently in flux.

Raj2032 commented 2 years ago

@xStrom I see thanks mate