mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
app/internal/gpu: remove profile flag
Automatically determine whether to profile GPU operations from the existence of a profiling op. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -90,9 +90,9 @@ func (w *Window) Release() {
|
||||
// operation list.
|
||||
func (w *Window) Frame(frame *op.Ops) {
|
||||
contextDo(w.ctx, func() error {
|
||||
w.gpu.Collect(false, w.size, frame)
|
||||
w.gpu.Frame(false, w.size)
|
||||
w.gpu.EndFrame(false)
|
||||
w.gpu.Collect(w.size, frame)
|
||||
w.gpu.Frame(w.size)
|
||||
w.gpu.EndFrame()
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user