3 ms·
You would use a custom scheduler to schedule many virtual threads onto a particular native thread.
by pron 6y ago
You would use a custom scheduler to schedule many virtual threads onto a particular native thread.
- jayd16 6y agoI don't think this is enough. You still might interweave your draw commands, causing issues.
- pron 6y agoYou can get the exact same result as with async/await.
- jayd16 6y agoIf you have multiple virtual threads issuing non-atomic commands that must be run together and not interwoven, how does the scheduler know when it's ok to yield one thread to another without explicit support? How can you set a shader and then draw a mesh each in two virtual threads without possibly interweaving their execution, for example?