Skip to content

Commit 5a29ee2

Browse files
authored
Auto-enable GPU record with HW context cores (#18209)
1 parent 8a86817 commit 5a29ee2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

record/record_driver.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ bool recording_init(void)
207207

208208
if (!video_gpu_record && video_driver_is_hw_context())
209209
{
210-
RARCH_WARN("[Recording] %s.\n",
210+
RARCH_WARN("[Recording] %s\n",
211211
msg_hash_to_str(MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING));
212-
return false;
212+
video_gpu_record = true;
213213
}
214214

215-
RARCH_LOG("[Recording] %s: FPS: %.2f, Sample rate: %.2f.\n",
215+
RARCH_LOG("[Recording] %s: FPS: %.2f, Sample rate: %.2f Hz.\n",
216216
msg_hash_to_str(MSG_CUSTOM_TIMING_GIVEN),
217217
(float)av_info->timing.fps,
218218
(float)av_info->timing.sample_rate);
@@ -279,7 +279,7 @@ bool recording_init(void)
279279
}
280280

281281
params.audio_resampler = settings->arrays.audio_resampler;
282-
params.video_gpu_record = settings->bools.video_gpu_record;
282+
params.video_gpu_record = video_gpu_record;
283283
params.video_record_scale_factor = settings->uints.video_record_scale_factor;
284284
params.video_stream_scale_factor = settings->uints.video_stream_scale_factor;
285285
params.video_record_threads = settings->uints.video_record_threads;
@@ -317,7 +317,7 @@ bool recording_init(void)
317317
}
318318
}
319319

320-
if (settings->bools.video_gpu_record
320+
if ( video_gpu_record
321321
&& video_st->current_video->read_viewport)
322322
{
323323
unsigned gpu_size;

0 commit comments

Comments
 (0)