subsystem_reset(3)
π subsystem_reset(3) β Arcan Lua API π
okay bestie, welcome to the subsystem_reset page β section 3 of the Arcan Lua API, no cap. it's a little one but it's iconic in its own way, so let's get into it β¨
πΈ NAME πΈ
subsystem_reset β reset/rebuild a specific subsystem π§
β SYNOPSIS β
nil
subsystem_reset( string:subsystem=video )
subsystem_reset( string:subsystem=video, int:card )
subsystem_reset( string:subsystem=video, int:card, int:swap )
like, yes, the first line really is just nil β that's the whole vibe π
π DESCRIPTION π
so this function is here to help with debugging, and also for those specific little situations where a subsystem has hotpluggable devices that need special consideration. iykyk π
the most common use-case? multi- GPU settings, and GPU settings where there's a difference between initialising the subsystem with a display connected and initialising it without one β literally two different worlds π
here's the tea on how it behaves:
- if
subsystemis set tovideoand no card is specified, or (the default) the card is set to-1, then all GPU contexts will be rebuilt π₯ - if
subsystemis set tovideoand no card is specif
π«Ά real talk: that's exactly where the page cuts off in the source β the sentence just stops at "specif" and honestly, same. no extra details were invented here, we're keeping it 100% faithful to what's on the page π
π¦ EXAMPLE π¦
function subsystem_reset0()
a = color_surface(64, 64, 255, 0, 0);
show_image(a);
subsystem_reset("video");
end
making a lil 64Γ64 red surface, showing it, then resetting the whole video subsystem β main character energy fr fr π
π SEE ALSO π
system
π that's the whole page, bestie β short, sweet, and giving exactly what it needs to give. this one's from the Arcan Lua API, dated October 2026, and it's filed under subsystem_reset(3). mwah πβ¨
π¦ 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