๐Ÿ“–

ACE Wiki

The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.

Try:
๐Ÿ’ป
Developer DocsAPI Reference

โšกPerformance

54 articles

Sort by:
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

Measuring function performance accurately

timer.systime is the best accuracy you can get - time the function with it across runs.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

FPS booster on the server

Yes, the server has an FPS booster; one player reports getting a stable 60 FPS with it.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
โšก
โšกPerformance

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
Loading more...
๐Ÿ“

Help Improve the Wiki

We know our documentation can be better. Quality wiki content takes time and expertise. If you're experienced with ACE and want to help, we'd love your contributions!