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

Some kind of race condition in skybox routine #566

Open
pillowtrucker opened this issue Jan 17, 2024 · 0 comments
Open

Some kind of race condition in skybox routine #566

pillowtrucker opened this issue Jan 17, 2024 · 0 comments

Comments

@pillowtrucker
Copy link
Contributor

Sometimes, the skybox routine will crash if the files don't load fast enough. I checked if it's not my code doing something silly, but it seems that the rend3 routine itself is unreliable. It is possible for this:

    lock(skybox_routine).set_background_texture(Some(handle));

to set the handle to Some(_) after getting it from the renderer, but then the crash happens when skybox_routine.evaluate calls

    pub fn get_view(&self, handle: RawResourceHandle<T>) -> &TextureView {
        &self.data[handle.idx].as_ref().unwrap().view
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant