redstarcoder / draw2dui

draw2dui is a golang package for drawing user interfaces using draw2d and OpenGL.
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

kitchen sink example fails to find the fonts event though they are there. #8

Open ghost opened 7 years ago

ghost commented 7 years ago

osx, latest go

x-MacBook-Pro:allwidgets apple$ go build
x-MacBook-Pro:allwidgets apple$ ls
allwidgets  allwidgets.go
x-MacBook-Pro:allwidgets apple$ ./allwidgets 
2017/07/24 13:15:45 open ../resource/font/luxirr.ttf: no such file or directory
2017/07/24 13:15:45 open ../resource/font/luxisr.ttf: no such file or directory
2017/07/24 13:15:45 No font set, and no default font available.
2017/07/24 13:15:45 open ../resource/font/luxirr.ttf: no such file or directory
2017/07/24 13:15:45 open ../resource/font/luxisr.ttf: no such file or directory
2017/07/24 13:15:45 No font set, and no default font available.
2017/07/24 13:15:45 open ../resource/font/luxirr.ttf: no such file or directory
2017/07/24 13:15:45 open ../resource/font/luxisr.ttf: no such file or directory
2017/07/24 13:15:45 No font set, and no default font available.
2017/07/24 13:15:45 open ../resource/font/luxirr.ttf: no such file or directory
ghost commented 7 years ago

just moved it up a folder:)

I am getting FPS of 6 FPS. Its this a limitation of the current design ?

redstarcoder commented 5 years ago

Thanks for your interest in my library!

The framerate drops automatically IIRC. It doesn't run full throttle because it sleeps. I think this a combination of sleeping and redraw flags. If you do things within the UI, the FPS will increase.

Are you okay if I close this? :)