Closed luithefirst closed 5 years ago
The custom function provides (self : IRenderTask, token : RenderToken, output : OutputDescription).
RenderTask.custom (fun (self,token,outputDesc) ->
let sw = Stopwatch.StartNew()
renderTask.Run(token,outputDesc) // no AdaptiveToken
Log.line "RenderTime: %dms" sw.ElapsedMilliseconds
)
In all use cases when pulling incremental computations no AdaptiveToken is used. In comparison to Mod.custom there is no AdpativeToken. Maybe self: IRenderTask should be AdaptiveToken instead and forwarded at the invocation of the CustomRenderTask function.
fixed in d190678d
Running the "07 - RenderTaskCustom" or "29 - PingPong" does not trigger rendering if the camera changes. A workaround is to enable RenderContinuously.