video_synchronization(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’– 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 πŸ‘‘

  1. the resulting strtbl values are valid only until the next call to set a video_synchronization. periodt πŸ’…
  2. attempting to set an invalid or unknown synchronization will silently fail. no systemic state change will be attempted β€” like, none at all πŸ’€
  3. the returned strtbl is indexed both on name and by number. the name indexes can be used to also get the short description of the strategy πŸ”₯
  4. 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