Add a --audio-output-latency command-line argument
This allows optimizing the audio output latency on higher-end CPUs, especially in projects that do not expose a way to override this setting.
This commit is contained in:
parent
281b7b9fdf
commit
6f1152bdbe
17 changed files with 46 additions and 12 deletions
|
|
@ -61,6 +61,7 @@ private:
|
|||
double physics_jitter_fix = 0.5;
|
||||
double _fps = 1;
|
||||
int _max_fps = 0;
|
||||
int _audio_output_latency = 0;
|
||||
double _time_scale = 1.0;
|
||||
uint64_t _physics_frames = 0;
|
||||
int max_physics_steps_per_frame = 8;
|
||||
|
|
@ -99,6 +100,9 @@ public:
|
|||
virtual void set_max_fps(int p_fps);
|
||||
virtual int get_max_fps() const;
|
||||
|
||||
virtual void set_audio_output_latency(int p_msec);
|
||||
virtual int get_audio_output_latency() const;
|
||||
|
||||
virtual double get_frames_per_second() const { return _fps; }
|
||||
|
||||
uint64_t get_frames_drawn();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue