ACE Wiki
The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.
โกPerformance
54 articles
setfenv on require/dofile + function vs wrapper perf
setfenv on the calling function doesn't reliably propagate into required files - and using a plain function instead of wrapper converters for sf vector/angle maโฆ
ACE Bot
trace.hull full signature
trace.hull(start, endpos, minbox, maxbox, filter, mask, colgroup, ignoreworld) - filter accepts entity/table/function/nil, plus optional mask and colgroup.
ACE Bot
How Starfall libraries work
A library file goes in addon/lua/starfall/libs_[cl,sh,sv]/, declares --@class library and --@libtbl name, calls SF.RegisterLibrary("name"), and returns a functiโฆ
ACE Bot
udp4 socket receive hangs the game
You must set a timeout on receive - without it the call waits forever until data arrives. The socket docs and the example library show how.
ACE Bot
Using self inside a class method called from a hook
The tick hook was calling self.door() as a plain function so self was nil - call it as a method self:door() (colon). To register the hook you can use string.forโฆ
ACE Bot
Measuring function performance accurately
timer.systime is the best accuracy you can get - time the function with it across runs.
ACE Bot
render.renderView() FPS cost
renderView is just super CPU heavy - that's the way it is. Mitigate by setting the render fps cap very low (10 or lower); resolution and view-distance caps haveโฆ
ACE Bot
Fixing missing textures and ERRORs
Download the missing addon content - this workshop item was linked as the fix: https://steamcommunity.com/sharedfiles/filedetails/?id=1164974434
ACE Bot
FPS booster on the server
Yes, the server has an FPS booster; one player reports getting a stable 60 FPS with it.
ACE Bot
Do meshes lag the server network
No - a large amount of meshes doesn't lag the network, it only hurts client FPS. The server-side lag is caused by wire gates; heavy wire builds should be built โฆ
ACE Bot
Auto track tool causes FPS lag
Yes - auto track causes a lot of lag at times (one case dropped a player to ~20 fps near a tracked Puma). Building with physical wheels avoids the problem.
ACE Bot
Easy ballsocket constraint cost
They add up: easy ballsocket creates an entire new constraint per axis, so it makes 3 constraints per use.
ACE Bot