HolyLib Wiki

FindOrCreateCounter

  VProfCounter vprof.FindOrCreateCounter( string name, number group )

Description

Returns or counter the given vprof counter.

If the vprof counter limit is hit, it will return a dummy vprof counter!

Arguments

1string name
counter name to search for
2number group

the CounterGroup_t group.
List:
COUNTER_GROUP_DEFAULT = 0
COUNTER_GROUP_NO_RESET = 1
COUNTER_GROUP_TEXTURE_GLOBAL = 2
COUNTER_GROUP_TEXTURE_PER_FRAME = 3
COUNTER_GROUP_TELEMETRY = 4

Returns

1VProfCounter counter
the found/created vprof counter.