Skip to main content

capture-h

source

Types


gs-store-image-packet

gs-store-image-packet: structuresource
Fields
vifcode: vif-tag
giftag: gif-tag
bitbltbuf: gs-bitbltbuf
bitbltbuf-addr: gs-reg64
trxpos: gs-trxpos
trxpos-addr: gs-reg64
trxreg: gs-trxreg
trxreg-addr: gs-reg64
finish: int64
finish-addr: gs-reg64
trxdir: gs-trxdir
trxdir-addr: gs-reg64

screen-shot-work

screen-shot-work: structuresource
Fields
count: int16
size: int16
name: string
highres-enable: symbol
hud-enable: symbol

Variables


*image-name*

*image-name*: stringsource

*screen-shot-work*

*screen-shot-work*: screen-shot-worksource

glist-h

source

Types


glst-list

glst-list: structuresource
Fields
head: glst-node
tail: glst-node
tailpred: glst-node
numelem: int32

glst-named-node

glst-named-node: glst-nodesource
Fields
next: glst-node
prev: glst-node
privname: string

glst-node

glst-node: structuresource
Fields
next: glst-node
prev: glst-node

profile-h

source
Expand description

The Jak 2 profiler is a significant improvement over Jak 1's.

VU segments are categorized by renderer, and the EE profiler allows nesting of events.

The EE profiler also allows events with the same name to be "collapsed" into a single

category.

The profiler can display results as bars, or as a text display by category.



Each "event" is called a "segment". It stores a time and also a "count".

The "count" can be used for whatever you want (ex: fragments, VU calls, etc)

Types


profile-array

profile-array: structuresource
Fields
data: profile-segment-array
Methods
setup-categories!(obj: profile-array) => nonesource

Summarize data collected.

draw-bars!(obj: profile-array, arg0: dma-buffer, arg1: int) => nonesource

Draw the two bars at the top.

draw-text!(obj: profile-array) => nonesource

Draw the table of times.

profile-collapse

profile-collapse: structuresource
Fields
count: int32
data: profile-segment

profile-segment

profile-segment: structuresource
Fields
name: symbol
start-time: int16
end-time: int16
count: uint8
vu-count: uint8
depth: uint16
color: rgba
code-time: uint16
vu-time: uint16

profile-segment-array

profile-segment-array: basicsource
Fields
type: type
count: int16
depth: int8
max-depth: int8
base-time: int16
segment: profile-segment
data: profile-segment
Methods
get-total-time(obj: profile-segment-array) => intsource

Get the total time spent.

start-frame!(obj: profile-segment-array) => nonesource

Start a frame.

start-segment!(obj: profile-segment-array, arg0: symbol, arg1: rgba) => nonesource

Push a new segment onto the profiling stack.

end-segment!(obj: profile-segment-array) => nonesource

Pop the last pushed segment.

Variables


*profile-actors-color*

*profile-actors-color*: rgbasource

*profile-all-color*

*profile-all-color*: rgbasource

*profile-array*

*profile-array*: profile-arraysource

*profile-background-color*

*profile-background-color*: rgbasource

*profile-blit-color*

*profile-blit-color*: rgbasource

*profile-bones-color*

*profile-bones-color*: rgbasource

*profile-bsp-color*

*profile-bsp-color*: rgbasource

*profile-camera-color*

*profile-camera-color*: rgbasource

*profile-collapse*

*profile-collapse*: profile-collapsesource

*profile-collide-color*

*profile-collide-color*: rgbasource

*profile-debug-color*

*profile-debug-color*: rgbasource

*profile-draw-hook-color*

*profile-draw-hook-color*: rgbasource

*profile-effects-color*

*profile-effects-color*: rgbasource

*profile-emerc-color*

*profile-emerc-color*: rgbasource

*profile-foreground-color*

*profile-foreground-color*: rgbasource

*profile-gap-color*

*profile-gap-color*: rgbasource

*profile-generic-merc-color*

*profile-generic-merc-color*: rgbasource

*profile-generic-tie-color*

*profile-generic-tie-color*: rgbasource

*profile-hud-color*

*profile-hud-color*: rgbasource

*profile-instance-shrubbery-color*

*profile-instance-shrubbery-color*: rgbasource

*profile-instance-tie-color*

*profile-instance-tie-color*: rgbasource

*profile-interrupt-segment*

*profile-interrupt-segment*: profile-segment-arraysource

*profile-interrupt-start*

*profile-interrupt-start*: symbolsource

*profile-joints-color*

*profile-joints-color*: rgbasource

*profile-menu-hook-color*

*profile-menu-hook-color*: rgbasource

*profile-merc-color*

*profile-merc-color*: rgbasource

*profile-nav-color*

*profile-nav-color*: rgbasource

*profile-ocean-color*

*profile-ocean-color*: rgbasource

*profile-particles-color*

*profile-particles-color*: rgbasource

*profile-shadow-color*

*profile-shadow-color*: rgbasource

*profile-sky-color*

*profile-sky-color*: rgbasource

*profile-sprite-color*

*profile-sprite-color*: rgbasource

*profile-target-color*

*profile-target-color*: rgbasource

*profile-target-post-color*

*profile-target-post-color*: rgbasource

*profile-texture-color*

*profile-texture-color*: rgbasource

*profile-tfrag-color*

*profile-tfrag-color*: rgbasource

*profile-update-actors-color*

*profile-update-actors-color*: rgbasource

profile

source

Types


profile-work

profile-work: structuresource
Fields
sprite-tmpl: dma-gif-packet
line-tmpl: dma-gif-packet
last-index: int32

Functions


profile-emerc-test

profile-emerc-test(arg0: bucket-id) => symbolsource

Is this an emerc bucket?

profile-merc-test

profile-merc-test(arg0: bucket-id) => symbolsource

Is this a merc bucket?

profile-mercneric-test

profile-mercneric-test(arg0: bucket-id) => symbolsource

Is this a mercneric bucket?

profile-texture-test

profile-texture-test(arg0: bucket-id) => symbolsource

Is this a texture bucket?

profile-tfrag-test

profile-tfrag-test(arg0: bucket-id) => symbolsource

Is this a tfrag bucket?

profile-tie-test

profile-tie-test(arg0: bucket-id) => symbolsource

Variables


*profile-h*

*profile-h*: intsource

*profile-ticks*

*profile-ticks*: symbolsource

*profile-w*

*profile-w*: intsource

*profile-work*

*profile-work*: profile-worksource

*profile-x*

*profile-x*: intsource

*profile-y*

*profile-y*: intsource

script-h

source

Types


script-context

script-context: structuresource
Fields
load-state: load-state
key: object
process: process
trans: vector
side-effect?: symbol
got-error?: symbol
expr: pair
param-count: int32
param: object
param-type: object
Methods
eval!(obj: script-context, arg0: pair) => objectsource
script-context-method-10(obj: script-context, arg0: object, arg1: pair) => objectsource
script-context-method-11(obj: script-context, arg0: pair, arg1: pair, arg2: symbol) => symbolsource

script-form

script-form: structuresource
Fields
name: symbol
spec: pair
func: function
Methods
script-form-method-9: unknown

script

source

Functions


command-get-entity

command-get-entity(search: object, fallback: entity) => entitysource
  • If search is a process - return it's entity
    - If search is an entity - return it
    - If search is a string - return the result of [[entity-by-name]]
    - If search is null? or empty or if no other condition passes, return fallback

command-get-float

command-get-float(arg0: object, arg1: float) => floatsource

command-get-int

command-get-int(arg0: object, arg1: int) => intsource

command-get-param

command-get-param(arg0: object, arg1: object) => objectsource

command-get-process

command-get-process(arg0: object, arg1: process) => processsource

command-get-quoted-param

command-get-quoted-param(arg0: object, arg1: object) => objectsource

command-get-time

command-get-time(arg0: object, arg1: int) => time-framesource

command-get-trans

command-get-trans(arg0: object, arg1: vector) => vectorsource

key-assoc

key-assoc(arg0: object, arg1: pair, arg2: vector4w) => pairsource

TODO vector4w is probably wrong!

level-from-heap

level-from-heap(arg0: int) => levelsource

Variables


*script-context*

*script-context*: script-contextsource

*script-form*

*script-form*: inline-arraysource

smush-control-h

source

Types


smush-control

smush-control: structuresource
Fields
start-time: time-frame
period: float
duration: float
amp: float
damp-amp: float
damp-period: float
ticks: float
Methods
set-zero!(obj: smush-control) => _type_source
update!(obj: smush-control) => floatsource
get-no-update(obj: smush-control) => floatsource
activate!(obj: smush-control, arg0: float, arg1: int, arg2: int, arg3: float, arg4: float, arg5: clock) => _type_source
nonzero-amplitude?(obj: smush-control) => symbolsource
die-on-next-update!(obj: smush-control) => _type_source

sync-info-h

source

Types


bouncing-float

bouncing-float: structuresource
Fields
osc: oscillating-float
max-value: float
min-value: float
elasticity: float
state: int32
Methods
set-params!(obj: bouncing-float, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) => floatsource
update!(obj: bouncing-float, arg0: float) => floatsource
at-min?(obj: bouncing-float) => symbolsource
at-max?(obj: bouncing-float) => symbolsource

delayed-rand-float

delayed-rand-float: structuresource
Fields
min-time: int32
max-time: int32
max-val: float
timer: int32
start-time: time-frame
value: float
Methods
set-params!(obj: delayed-rand-float, arg0: int, arg1: int, arg2: float) => floatsource
reset!(obj: delayed-rand-float) => floatsource
update!(obj: delayed-rand-float) => floatsource
update-and-clear!(obj: delayed-rand-float) => nonesource

delayed-rand-vector

delayed-rand-vector: structuresource
Fields
min-time: int32
max-time: int32
xz-max: float
y-max: float
timer: int32
start-time: time-frame
value: vector
Methods
set-params!(obj: delayed-rand-vector, arg0: int, arg1: int, arg2: float, arg3: float) => vectorsource
update-now!(obj: delayed-rand-vector) => vectorsource
update-with-delay!(obj: delayed-rand-vector) => vectorsource
update-with-delay-or-reset!(obj: delayed-rand-vector) => vectorsource

oscillating-float

oscillating-float: structuresource
Fields
value: float
target: float
vel: float
max-vel: float
damping: float
accel: float
Methods
set-params!(obj: oscillating-float, arg0: float, arg1: float, arg2: float, arg3: float) => floatsource
update!(obj: oscillating-float, arg0: float) => floatsource

oscillating-vector

oscillating-vector: structuresource
Fields
value: vector
target: vector
vel: vector
max-vel: float
damping: float
accel: float
Methods
set-params!(obj: oscillating-vector, arg0: vector, arg1: float, arg2: float, arg3: float) => vectorsource
update!(obj: oscillating-vector, arg0: vector) => vectorsource

sync-eased

sync-eased: sync-infosource
Fields
sync-flags: sync-flags
offset: float
period: uint32
tlo: float
thi: float
ylo: float
m2: float
yend: float
pause-in: float
pause-out: float

sync-info

sync-info: structuresource
Fields
sync-flags: sync-flags
offset: float
period: uint32
Methods
get-current-phase-no-mod(obj: sync-info) => floatsource

Get the current value, with no fancy modifications.

get-phase-offset(obj: sync-info) => floatsource

Get the offset, as a fraction of period

get-norm!(obj: sync-info, arg0: int) => floatsource

Get the current value, from 0 to 1.

get-scaled-val!(obj: sync-info, arg0: float, arg1: int) => floatsource

Multiples result of get-norm! by the provided float

initialize!(obj: sync-info, arg0: sync-info-params) => nonesource

Set up a sync-info from params.

get-timeframe-offset!(obj: sync-info, arg0: time-frame) => time-framesource

Get the difference between the given time-frame and when this sync-info is at 0.

sync-now!(obj: sync-info, arg0: float) => nonesource

Adjust our offset so our current phase is the given phase.

sync-info-params

sync-info-params: structuresource
Fields
sync-type: symbol
sync-flags: sync-flags
entity: basic
period: uint32
percent: float
ease-in: float
ease-out: float
pause-in: float
pause-out: float

sync-linear

sync-linear: sync-infosource
Fields
sync-flags: sync-flags
offset: float
period: uint32

sync-paused

sync-paused: sync-infosource
Fields
sync-flags: sync-flags
offset: float
period: uint32
pause-in: float
pause-out: float

types-h

source

Types


part-id

part-id: uint32source

Variables


DEGREES_PER_ROT

DEGREES_PER_ROT: unknownsource

METER_LENGTH

METER_LENGTH: unknownsource