Skip to content

Example of using EnkiTS within game loop and work queue? #133

Answered by dougbinks
the-brickster asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @the-brickster,

I have some generic recommendations first:

First off, since you are making a C/C++ game I would use the C++ interface, as the C interface is built on top of that and the C++ interface is likely easier to understand, and should make things a bit more obvious as to what you are doing. In this case it would make it clear that calling enkiSetArgsTaskSet overwrites the data for task_set.

I would also run in debug occasionally to check you are using the API correctly. In your case this should assert in TaskScheduler::AddTaskSetToPipe as you are adding the same task multiple times before it completes.

For the specifics of your project I don't know enough to give precise recomm…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@the-brickster
Comment options

Answer selected by the-brickster
Comment options

You must be logged in to vote
0 replies
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