Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy World for Independent Update and Render #242

Open
jimbuck opened this issue Oct 28, 2024 · 0 comments
Open

Copy World for Independent Update and Render #242

jimbuck opened this issue Oct 28, 2024 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@jimbuck
Copy link

jimbuck commented Oct 28, 2024

Is there a way to copy/clone the raw memory of a World into a separate instance of the World?

I'd like to experiment with independent update and render threads. To avoid rendering in the middle of an update I want to try using multiple Worlds that are swapped to let updates and renders happen simultaneously.

It would be a low level action that could be called 60UPS and (hopefully) 60FPS, so copying the contiguous memory blocks onto pre-allocated spans is preferred.

Thanks!

@genaray genaray added help wanted Extra attention is needed question Further information is requested labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants