@@ -59,6 +59,7 @@ func init() {
59
59
verb .FPS = 5
60
60
verb .Frames .Count = allTheWay
61
61
verb .Frames .Minimum = 1
62
+ verb .NoOpt = false
62
63
app .AddVerb (& app.Verb {
63
64
Name : "video" ,
64
65
ShortHelp : "Produce a video or sequence of frames from a .gfxtrace file" ,
@@ -128,7 +129,7 @@ func (verb *videoVerb) regularVideoSource(
128
129
for i , e := range eofEvents {
129
130
i , e := i , e
130
131
executor (ctx , func (ctx context.Context ) error {
131
- if frame , err := getFrame (ctx , verb .Max .Width , verb .Max .Height , e .Command , device , client ); err == nil {
132
+ if frame , err := getFrame (ctx , verb .Max .Width , verb .Max .Height , e .Command , device , client , verb . NoOpt ); err == nil {
132
133
rendered [i ] = flipImg (frame )
133
134
} else {
134
135
errors [i ] = err
@@ -326,11 +327,12 @@ func (verb *videoVerb) encodeVideo(ctx context.Context, filepath string, vidFun
326
327
return nil
327
328
}
328
329
329
- func getFrame (ctx context.Context , maxWidth , maxHeight int , cmd * path.Command , device * path.Device , client service.Service ) (* image.NRGBA , error ) {
330
+ func getFrame (ctx context.Context , maxWidth , maxHeight int , cmd * path.Command , device * path.Device , client service.Service , noOpt bool ) (* image.NRGBA , error ) {
330
331
ctx = log.V {"cmd" : cmd .Indices }.Bind (ctx )
331
332
settings := & service.RenderSettings {MaxWidth : uint32 (maxWidth ), MaxHeight : uint32 (maxHeight )}
332
333
iip , err := client .GetFramebufferAttachment (ctx , & service.ReplaySettings {
333
334
Device : device ,
335
+ DisableReplayOptimization : noOpt ,
334
336
}, cmd , api .FramebufferAttachment_Color0 , settings , nil )
335
337
if err != nil {
336
338
return nil , log .Errf (ctx , err , "GetFramebufferAttachment failed at %v" , cmd )
0 commit comments