Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

ES3: delay-create resources to avoid thread-locked contexts #74

Open
benvanik opened this issue Jul 25, 2017 · 1 comment
Open

ES3: delay-create resources to avoid thread-locked contexts #74

benvanik opened this issue Jul 25, 2017 · 1 comment
Assignees

Comments

@benvanik
Copy link
Contributor

Only need objects created when mapping, otherwise can be deferred until first use on the queue thread.
Thinking:

  • context has a single platform context for resource stuff (this is the 'root' share group context)
  • queues have a context of their own
  • swap chains have a context of their own

The context could then have a small thread that listens for requests to map/unmap buffers and delete objects, and creations happen delayed on first execution.

@benvanik benvanik self-assigned this Jul 25, 2017
@benvanik
Copy link
Contributor Author

Pull #81 gets most of this done. Swiftshader has issues with multithreading (like, it has no thread safety at all >_>) so a mode that disables the present queue and does all GL actions on the primary queue would be a good workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant