mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 23:20:25 +09:00
Remove deprecated overclocking option
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
@@ -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 */
|
||||
Reference in New Issue
Block a user