faiface / pixel

A hand-crafted 2D game library in Go
MIT License
4.43k stars 244 forks source link

animation from tutorial lags sometimes #310

Open norflin321 opened 1 year ago

norflin321 commented 1 year ago

when i run final code of this part of tutorial animation lags in places

video https://user-images.githubusercontent.com/33498670/181697592-062e6c7f-7b9f-4334-8e32-eef00fa4ce30.mov

which led me to think that this behavior would also be in the game that I want to make so I chose to use other game engine

until I found #304 and ran the command: go get -u -tags=gles3 github.com/go-gl/glfw/v3.3/glfw after that, the problem is solved and the animation is always smooth it turns out it was because I have apple arm cpu


i think it is important to mention that problem and command to solve it in tutorial or other documentation so that some people don't get wrong impression about the engine when they go through tutorial