Class: FMOD::System::CpuUsage

Inherits:
Struct
  • Object
show all
Defined in:
lib/fmod/system.rb

Overview

Contains values for describing the current CPU time used by FMOD.

Instance Attribute Summary collapse

Instance Attribute Details

#dsp ⇒ Float

The current DSP mixing engine CPU usage. Result will be from 0.0 to 100.0.

Returns:

  • (Float) —

    the current value of dsp



24
25
26
# File 'lib/fmod/system.rb', line 24

def dsp
  @dsp
end

#geometry ⇒ Float

The current geometry engine CPU usage. Result will be from 0.0 to 100.0.

Returns:

  • (Float) —

    the current value of geometry



24
25
26
# File 'lib/fmod/system.rb', line 24

def geometry
  @geometry
end

#stream ⇒ Float

The current streaming engine CPU usage. Result will be from 0.0 to 100.0.

Returns:

  • (Float) —

    the current value of stream



24
25
26
# File 'lib/fmod/system.rb', line 24

def stream
  @stream
end

#total ⇒ Float

The current total CPU usage. Result will be from 0 to 100.0.

Returns:

  • (Float) —

    the current value of total



24
25
26
# File 'lib/fmod/system.rb', line 24

def total
  @total
end

#update ⇒ Float

The current System::update CPU usage. Result will be from 0.0 to 100.0.

Returns:

  • (Float) —

    the current value of update



24
25
26
# File 'lib/fmod/system.rb', line 24

def update
  @update
end