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

Actors vanish after some time... #15

Closed
dustyirwin opened this issue Oct 15, 2020 · 2 comments
Closed

Actors vanish after some time... #15

dustyirwin opened this issue Oct 15, 2020 · 2 comments

Comments

@dustyirwin
Copy link
Contributor

I'm having some problems with the actors that I load into a game.

After some time (I haven't yet been able to determine a rhyme or reason yet, but usually after there are a few sprites in play or after 10~15 seconds) the actors all disappear and I'm left with an empty screen. I can still hear music and sounds being activated, just no visuals. Closing the game and reloading usually works (sometime it just hangs, forcing a Julia reboot) and it will draw the actors again until they disappear again.

Has anyone else had a similar issue?

@aviks
Copy link
Owner

aviks commented Oct 16, 2020

That's really weird, I've never seen anything like it. What platform are you in? Maybe put some logging in the game loop to see what is happening?

@dustyirwin
Copy link
Contributor Author

This should be patched in #17

aviks pushed a commit that referenced this issue Oct 17, 2020
Update draw(a::Actor) method to use `SDL2.DestroyTexture` on generated textures after they have been rendered. Should address #15
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

2 participants