![]() |
![]()
| ![]() |
![]()
NAMErendertarget_forceupdate - Manually perform an out-of-loop update of a rendertarget SYNOPSISnil
DESCRIPTIONBy default, rendertargets update synchronously with the regular video refresh/redraw that is performed as part of the active synchronization strategy combined with the refreshrate hinted during creation. This function covers two use-cases. The first use case is to force an out-of-loop update of the specified target in 'manual' update mode (rate=0). By default this will always trigger a render pass. If the second argument is set to false, then the update will only be forced if the pipeline is actually dirty. The second use case is to change the refresh and readback rates for the specified rendertarget. This can be used as an optimization to temporarily disable rendertargets without going through the process of rebuilding and migrating between rendertargets. Any pending counters/timers for frame or tick/based automatic updates will be reset, and the update includes synchronizing with readback in the case of calctargets and recordtargets. If allow_hw is set to true, the readback performed will instead be used to share the buffer of the rendertarget with the assigned sink. This has complex effects on the underlying graphics stack and may fail. If a failure can be detected it will automatically switch back to a software only approach (allow_hw=false), but it can also fail without warning. NOTES
EXAMPLEfunction rendertarget_forceupdate0() MISUSEfunction rendertarget_forceupdate0() SEE ALSO:define_rendertarget(3) define_calctarget(3) define_recordtarget(3)
|