Skip to content

Multithreading in BGFX #2470

Answered by bkaradzic
Delvix000 asked this question in Q&A
Apr 15, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Is something like this feasible in bgfx? If so, how?

It already works like this. See: https://bkaradzic.github.io/bgfx/internals.html

bgfx API is declarative, when you call it, it just records what needs to be done. Once you call bgfx::frame work is getting done on other thread.

If you want to submit from multiple threads you need to use bgfx::Encoder API: https://bkaradzic.github.io/bgfx/bgfx.html#encoder

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Delvix000
Comment options

Answer selected by Delvix000
Comment options

You must be logged in to vote
2 replies
@bkaradzic
Comment options

@Delvix000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants