mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Cache uniform/attrib locations+display fps averages over a second
This commit is contained in:
@ -20,7 +20,7 @@ func FrameEnded() {
|
||||
dt = float32(time.Since(frameStart).Seconds())
|
||||
}
|
||||
|
||||
//DT is frame deltatime in milliseconds
|
||||
//DT is frame deltatime in seconds
|
||||
func DT() float32 {
|
||||
return dt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user