remove poll events

This commit is contained in:
giongto35 2019-04-03 23:44:39 +08:00
parent d6a95d9b55
commit 8c52af89f9
2 changed files with 9 additions and 2 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
From golang:1.11
RUN mkdir -p /go/src/github.com/giongto35/game-online
COPY . /go/src/github.com/giongto35/game-online/
# Install server dependencies
RUN go get github.com/pions/webrtc
RUN go get github.com/go-gl/glfw/v3.2/glfw

View file

@ -7,7 +7,6 @@ import (
"time"
"github.com/giongto35/game-online/nes"
"github.com/go-gl/glfw/v3.0/glfw"
)
type View interface {
@ -67,7 +66,7 @@ func (d *Director) Start(paths []string) {
func (d *Director) Run() {
for {
d.Step()
glfw.PollEvents()
//glfw.PollEvents()
}
d.SetView(nil)
}