video_synchronization(3)
π video_synchronization(3) π
okay bestie, welcome to the Arcan Lua API page for video_synchronization β¨ this one is all about getting or setting the current synchronization strategy, and it's lowkey iconic π
πΈ NAME πΈ
video_synchronization β get or set the current synchronization strategy, no cap π
β¨ SYNOPSIS β¨
nil or strtbl
video_synchronization( string:strategy )
π¦ DESCRIPTION π¦
so there are literally two stages for controlling synchronization strategy π
- the first one is static and can only be formed on the command-line. it should be limited to strategies that require specific video platform configuration that could invalidate the current graphics context π like, proceed with caution bestie.
- the other stage can be controlled using this function. first, call it with no arguments and it returns a table with the set of allowed values. then you can use one of those values in a subsequent call, which will switch the active strategy to the one specified, if possible β¨
π NOTES π
- the resulting
strtblvalues are valid only until the next call to set avideo_synchronization. periodt π - attempting to set an invalid or unknown synchronization will silently fail. no systemic state change will be attempted β like, none at all π
- the returned
strtblis indexed both on name and by number. the name indexes can be used to also get the short description of the strategy π₯ - the available selection of synchronization strategies is video platform specific and possibly hardware configuration specific π
π EXAMPLE π
here's the example exactly as given, because we do not mess with code in this house π«Ά
function video_synchronization0()
local tbl = video_synchronization();
for k,v in ipairs(tbl) do
print(v);
print(tbl[v]);
end
if (#tbl > 0) then
print("switching to " .. tbl[1]);
video_synchronization(tbl[1]);
else
print("no dynamic synchronization strategies are available");
end
end
π SEE ALSO π
vidsys
that's the whole page, bestie π«Ά stay synchronized and slay β¨ this was from source/version vidsys, dated October 2026, for video_synchronization(3) ππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms