Skip to content

Document that ProcessEvents is only needed for AllowProcessEvents callbacks #498

Description

@kainino0x

We should explain in docs for wgpuInstanceProcessEvents that it is only needed for AllowProcessEvents callbacks (that aren't waited), or in other words, you don't need it if every future either is waited or has AllowSpontaneous.

(Which led me to another question: is it fine if my app never calls wgpuInstanceProcessEvents or wgpuDeviceTick? If it is not, when should they be called?)

Originally posted by @zcbenz in #491 (comment)

Activity

  1. lokokung commented on Jan 15, 2025

    @lokokung
    Collaborator

    Agreed! It's important to note that although tehnically we shouldn't need to call ProcessEvents or Tick if all callbacks are AllowSpontaneous, apps that do not continually submit work to the queue (in native) may not see forward progress if they don't call ProcessEvents or Tick at the moment. This will likely be an issue until we resolve a good way to make forward progress in another thread or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions