GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
system_context_size(3) Arcan Lua API system_context_size(3)

system_context_size - Change the number of vids allowed at once in new contexts.

nil
system_context_size( newlim )

There is a low limit on the amount of video objects that are allowed to be alive in a context. Attempts to allocate beyond this limit is a terminal state transition, as a means of allowing early resource leak detection and as a means of encouraging use of the context- stack to keep resource usage low.

1
Accepted values for newlim is 0 < n <= 65536
2
These changes will not effect the currently active context, only those that gets activated when the current context is pushed or when the outmost context is poped.
3
Invalid context sizes is a terminal state transition.
4
The default initial context size is set to 1k, which should be enough for everyone.

function system_context_size0()
      local a, b = current_context_usage();
      warning("current: " .. a);
      warning("requesting new size");
      system_context_size(64);
      a, b = current_context_usage();
      warning("current: " .. a);
      warning("poping");
      pop_video_context();
      a, b = current_context_usage();
      warning("current: " .. a);
end

function system_context_size0()
      system_context_size(-10);
end

function system_context_size1()
      system_context_size(0);
end
June 2022 system

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.