Enum Class GpuTimerBackend

java.lang.Object
java.lang.Enum<GpuTimerBackend>
com.victorvalentim.zividomelive.performance.GpuTimerBackend
All Implemented Interfaces:
Serializable, Comparable<GpuTimerBackend>, Constable

public enum GpuTimerBackend extends Enum<GpuTimerBackend>
GPU measurement mechanism effectively selected for a profiling session.

API stability: Experimental.

Since:
2.0.0
  • Enum Constant Details

    • NONE

      public static final GpuTimerBackend NONE
      No GPU measurement is active; CPU profiling remains available.
    • TIMESTAMP_PAIR

      public static final GpuTimerBackend TIMESTAMP_PAIR
      Two asynchronous GL_TIMESTAMP queries delimit GPU execution.
    • TIME_ELAPSED_EXCLUSIVE

      public static final GpuTimerBackend TIME_ELAPSED_EXCLUSIVE
      One exclusive asynchronous GL_TIME_ELAPSED query delimits GPU execution.
    • FENCE_COMPLETION

      public static final GpuTimerBackend FENCE_COMPLETION
      An asynchronous GL fence reports CPU-observed completion latency.

      This backend is deliberately distinct from timer-query backends: it does not expose a GPU clock duration. It measures the latency from the CPU-side beginning of the profiled interval until a later non-blocking poll observes the end fence as complete.

  • Method Details

    • values

      public static GpuTimerBackend[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GpuTimerBackend valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null