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
current_context_usage(3) Arcan Lua API current_context_usage(3)

current_context_usage - Return how many cells the current context has, and how many of those cells that are currently unused.

total, used
current_context_usage()

This function sweeps the VID pool of the currently active context and counts O(n) how many of these are in use and subsequently returns how many slots are available in total, and how many are maked as used. The number of free slots can be found by subtracting used from total.

function current_context_usage0()
      a = fill_surface(32, 32, 0, 0, 0);
      print(current_context_usage());
      b = fill_surface(32, 32, 0, 0, 0);
      print(current_context_usage());
end
June 2022 vidsys

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.