Remove deprecated overclocking option

This commit is contained in:
dec05eba
2026-05-02 01:44:25 +02:00
parent e48be50cd8
commit 2f23dcf29a
15 changed files with 15 additions and 450 deletions

View File

@@ -97,7 +97,6 @@ typedef struct {
bool date_folders;
bool restore_portal_session;
bool restart_replay_on_save;
bool overclock;
bool write_first_frame_ts;
bool is_livestream;
bool is_output_piped;

View File

@@ -1,7 +1,6 @@
#ifndef GSR_CUDA_H
#define GSR_CUDA_H
#include "overclock.h"
#include <stddef.h>
#include <stdbool.h>
@@ -75,9 +74,6 @@ typedef struct CUgraphicsResource_st *CUgraphicsResource;
typedef struct gsr_cuda gsr_cuda;
struct gsr_cuda {
gsr_overclock overclock;
bool do_overclock;
void *library;
CUcontext cu_ctx;
@@ -102,7 +98,7 @@ struct gsr_cuda {
CUresult (*cuGraphicsSubResourceGetMappedArray)(CUarray *pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel);
};
bool gsr_cuda_load(gsr_cuda *self, Display *display, bool overclock);
bool gsr_cuda_load(gsr_cuda *self);
void gsr_cuda_unload(gsr_cuda *self);
#endif /* GSR_CUDA_H */

View File

@@ -7,7 +7,6 @@ typedef struct gsr_egl gsr_egl;
typedef struct {
gsr_egl *egl;
bool overclock;
gsr_color_depth color_depth;
} gsr_video_encoder_nvenc_params;

View File

@@ -1,17 +0,0 @@
#ifndef GSR_OVERCLOCK_H
#define GSR_OVERCLOCK_H
#include "xnvctrl.h"
typedef struct {
gsr_xnvctrl xnvctrl;
int num_performance_levels;
} gsr_overclock;
bool gsr_overclock_load(gsr_overclock *self, Display *display);
void gsr_overclock_unload(gsr_overclock *self);
bool gsr_overclock_start(gsr_overclock *self);
void gsr_overclock_stop(gsr_overclock *self);
#endif /* GSR_OVERCLOCK_H */

View File

@@ -1,45 +0,0 @@
#ifndef GSR_XNVCTRL_H
#define GSR_XNVCTRL_H
#include <stdbool.h>
#include <stdint.h>
#define NV_CTRL_GPU_NVCLOCK_OFFSET 409
#define NV_CTRL_GPU_MEM_TRANSFER_RATE_OFFSET 410
#define NV_CTRL_GPU_NVCLOCK_OFFSET_ALL_PERFORMANCE_LEVELS 424
#define NV_CTRL_GPU_MEM_TRANSFER_RATE_OFFSET_ALL_PERFORMANCE_LEVELS 425
#define NV_CTRL_TARGET_TYPE_GPU 1
#define NV_CTRL_STRING_PERFORMANCE_MODES 29
typedef struct _XDisplay Display;
typedef struct {
int type;
union {
struct {
int64_t min;
int64_t max;
} range;
struct {
unsigned int ints;
} bits;
} u;
unsigned int permissions;
} NVCTRLAttributeValidValuesRec;
typedef struct {
Display *display;
void *library;
int (*XNVCTRLQueryExtension)(Display *dpy, int *event_basep, int *error_basep);
int (*XNVCTRLSetTargetAttributeAndGetStatus)(Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, int value);
int (*XNVCTRLQueryValidTargetAttributeValues)(Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, NVCTRLAttributeValidValuesRec *values);
int (*XNVCTRLQueryTargetStringAttribute)(Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, char **ptr);
} gsr_xnvctrl;
bool gsr_xnvctrl_load(gsr_xnvctrl *self, Display *display);
void gsr_xnvctrl_unload(gsr_xnvctrl *self);
#endif /* GSR_XNVCTRL_H */