frame

package
v0.0.0-...-0518d83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter() *Counter

func (*Counter) GetAverage

func (counter *Counter) GetAverage() float64

func (*Counter) GetFPS

func (counter *Counter) GetFPS() float64

func (*Counter) PutSample

func (counter *Counter) PutSample(delta float64)

type Limiter

type Limiter struct {
	FPS int
	// contains filtered or unexported fields
}

func NewLimiter

func NewLimiter(fps int) *Limiter

func (*Limiter) Sync

func (limiter *Limiter) Sync()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL