mirror of
https://github.com/bloeys/nterm.git
synced 2025-12-29 14:38:19 +00:00
Vsync
This commit is contained in:
3
main.go
3
main.go
@ -32,7 +32,6 @@ func (p *program) Update() {
|
|||||||
if input.IsQuitClicked() {
|
if input.IsQuitClicked() {
|
||||||
p.shouldRun = false
|
p.shouldRun = false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *program) Render() {
|
func (p *program) Render() {
|
||||||
@ -66,6 +65,8 @@ func main() {
|
|||||||
panic("Failed to create window. Err: " + err.Error())
|
panic("Failed to create window. Err: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
engine.SetVSync(true)
|
||||||
|
|
||||||
p := &program{
|
p := &program{
|
||||||
shouldRun: true,
|
shouldRun: true,
|
||||||
win: win,
|
win: win,
|
||||||
|
|||||||
Reference in New Issue
Block a user