You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, basically I'm following justforfunc series, and started to build flappy gopher game. I've run into an issue that after running a renderer in a separate goroutine it doesn't copy texture to window.
Minimal reproduction
Build game: go build *.go
Run it: ./main
Draws only Flappy Gopher title on window, no bird and background.
Note: I tried to use directly scene.paint() method and it draws background and bird successfully, but when it's running inside scene.run() method, it basically shows black screen.
The text was updated successfully, but these errors were encountered:
Hi @bejaneps, sorry for the wait. Could you post a minimal example that reproduces the issue? I don't have all the assets so it would be very helpful if you can share a tiny project that requires no assets and reproduces the same issue so I can see what's going on.
I'm not sure if SDL supports using Renderer.Paint off the main thread. The only things I'm seeing that allow you to do so is via OpenGL contexts, not directly using the Renderer. Here and here are folks doing it with an OpenGL context, but I haven't seen anything using the built in Renderer
So, basically I'm following justforfunc series, and started to build flappy gopher game. I've run into an issue that after running a renderer in a separate goroutine it doesn't copy texture to window.
Minimal reproduction
go build *.go
./main
Goversion: 1.14.4
OS: Elementary OS Juno
Code
main.go
scene.go
Note: I tried to use directly scene.paint() method and it draws background and bird successfully, but when it's running inside scene.run() method, it basically shows black screen.
The text was updated successfully, but these errors were encountered: