Commit Graph

151 Commits

Author SHA1 Message Date
twinaphex
b79b2dca13 Create performance_counters 2016-05-10 08:53:14 +02:00
twinaphex
7c20f2b868 Change namespace of thread functions 2016-05-10 03:14:23 +02:00
Hans-Kristian Arntzen
adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex
54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex
f53711f791 Change return type of load_texture to uintptr_t 2015-12-20 22:38:18 +01:00
twinaphex
aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
twinaphex
34dbd35642 Revert "Remove some unnecesary functions"
This reverts commit 1f13f26ba4.
2015-12-08 12:55:43 +01:00
twinaphex
1f13f26ba4 Remove some unnecesary functions 2015-12-08 11:21:57 +01:00
twinaphex
bae51fb3bd Turn rarch_threaded_video_send_and_wait to static function 2015-12-08 11:17:26 +01:00
twinaphex
1ea3b54411 Move definition of thread_packet to video_thread_wrapper.c 2015-12-08 11:09:09 +01:00
twinaphex
aa6c7a5ed3 Create two new threading command wrapper functions 2015-12-08 11:05:18 +01:00
twinaphex
7f433a36d5 Move rthreads.h header include to video_thread_wrapper.c 2015-12-06 21:35:55 +01:00
twinaphex
9b65988682 Create rarch_threaded_video_send_and_wait 2015-12-06 21:34:39 +01:00
twinaphex
37286ca894 header cleanup 2015-12-06 21:31:20 +01:00
twinaphex
b7f7b1f3b7 video_thread_wrapper.c - cleanups 2015-12-02 01:01:27 +01:00
twinaphex
0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex
9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex
4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex
389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex
df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
twinaphex
5bf91c92cb rarch_threaded_video_get_ptr - prevent possible NULL pointer dereferences 2015-10-05 06:13:58 +02:00
twinaphex
87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex
e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
twinaphex
0d18c61bc5 Add RARCH_MAIN_CTL_IS_PAUSED 2015-09-26 13:04:07 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
e182f32d8c Header cleanups 2015-09-05 20:03:27 +02:00
twinaphex
0bf8a36d50 Fix RGUI fallback - if threaded video wrapper was enabled,
we could not grab an ident resembling 'd3d' or 'gl'
2015-08-17 20:51:12 +02:00
twinaphex
ccac72f1e7 Refactor is_paused 2015-08-05 12:58:25 +02:00
twinaphex
0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex
bd6ee135e9 Take out runloop_t dependencies 2015-08-03 20:03:14 +02:00
twinaphex
c3f5ea0fcc Make input_overlay.h no longer depend on RPNG image 2015-07-11 08:14:39 +02:00
Alcaro
4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro
97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
Higor Eurípedes
376228fac3 Clear thr->cmd_data after blocking for a reply. 2015-05-20 21:43:43 -03:00
twinaphex
95821959a7 Remove local variable 2015-05-20 22:22:47 +02:00
Higor Eurípedes
09c9904ab0 Cleanup thread_loop a bit 2015-05-20 17:06:57 -03:00
Higor Eurípedes
bb2f181386 Remove unprotected access to cmd_data and rewrite message passing mechanism 2015-05-20 17:06:57 -03:00
twinaphex
cf2c0f6930 Rename rarch_render_cached_frame to video_driver_cached_frame 2015-05-20 21:06:44 +02:00
Alcaro
3ea56e67a9 Fix some race conditions on that frame counter. 2015-05-09 16:30:02 +02:00
twinaphex
3d6b29e97b thread_get_frame_count - return 0 instead of NULL 2015-05-09 16:07:05 +02:00
twinaphex
ae408a1d41 Create video_poke get_frame_count function 2015-05-09 15:52:06 +02:00
twinaphex
31498e825f Crashed here in threaded video mode 2015-05-09 12:35:06 +02:00
Twinaphex
b02986ff94 (Thread wrapper) Fix CMD_SET_VIEWPORT 2015-04-27 00:08:00 +02:00
twinaphex
c7c98451bf (video_thread_wrapper.h) Get rid of some header dependencies 2015-04-26 22:58:19 +02:00
twinaphex
a9dee4877e Create set_viewport wrapper function - threaded video mode's
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex
c22535b7e1 Reduce HAVE_FBO ifdefs 2015-04-25 02:35:06 +02:00
twinaphex
bd63de9b3a Replace gl_font_init_first and d3d_font_init_first with common function 2015-04-21 17:33:00 +02:00
Lioncash
3d6a936dfe video_thread_wrapper: Fix height return value
Previously thread_get_video_output_size would assign the width to the height output.
2015-04-03 15:21:55 -04:00
twinaphex
b98d8a47cf (audio/video_thread_wrapper) Style nits 2015-03-23 01:44:36 +01:00
twinaphex
16cce08fa7 Rename threaded_video_resolve to threaded_video_get_ptr 2015-03-22 00:24:47 +01:00
twinaphex
7bc845006b Start replacing more g_settings usages 2015-03-20 20:43:22 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
7378299282 Create rarch_main_get_ptr 2015-03-18 06:47:22 +01:00
aliaspider
7a72d46f9a add a read_frame_raw callback to the video_driver_t structure. 2015-03-16 09:33:16 +01:00
twinaphex
00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex
a74cb0574b Create g_runloop and start moving variables there 2015-03-07 12:36:50 +01:00
twinaphex
f80e3740aa Implement set_video_mode in video poke interface 2015-02-24 21:57:51 +01:00
twinaphex
13a391c165 Implement get_video_output_prev/get_video_output_next 2015-02-24 21:36:23 +01:00
twinaphex
f9ede9d00a Add get_video_output_size to video driver's poke interface 2015-02-24 20:06:58 +01:00
twinaphex
8f5809ee46 Take out make_current_context 2015-02-16 23:41:49 +01:00
twinaphex
64446ef497 Rename and move rarch_viewport 2015-02-14 05:52:05 +01:00
twinaphex
90e5cffab8 Add RETRO_ENVIRONMENT_MAKE_CURRENT_CONTEXT 2015-02-08 18:39:12 +01:00
twinaphex
3fb52bbd4c (gfx/video_thread_wrapper.c) Cleanups 2015-01-26 20:37:09 +01:00
Jean-André Santoni
ee533909dc Fix FPS drop due to suppress_screensaver being called on each frame 2015-01-20 22:31:59 +01:00
twinaphex
da88bcdd91 Rename gfx_shader* to video_shader* 2015-01-19 21:24:08 +01:00
twinaphex
c4310ec813 Implement suspend_screensaver callback 2015-01-18 22:32:14 +01:00
twinaphex
9215ef7067 (gfx/video_thread_wrapper.c) Minor cleanup 2015-01-11 21:57:30 +01:00
twinaphex
9ddf9b01cb (video_thread_wrapper.c) Document video_thread_wrapper.c 2015-01-11 21:51:18 +01:00
twinaphex
878d1f0647 Some cleanups in video_thread_wrapper.c 2015-01-10 18:55:37 +01:00
twinaphex
74b220b711 gfx/video_thread_wrapper.c - Declare variables at top of functions 2015-01-09 23:44:53 +01:00
twinaphex
bcfc9d9077 Update headers 2015-01-07 18:06:50 +01:00
Jean-André Santoni
82e67e7605 (Lakka) Use theme font + responsive font size 2014-11-07 15:05:59 +01:00
twinaphex
174d011bed Move dir_list to SDK 2014-10-22 01:13:05 +02:00
twinaphex
383eb08988 Don't have file_path.h include dir_list.h 2014-10-21 18:46:39 +02:00
twinaphex
c699a7683e (video_thread_wrapper.c) Rename thread_frame variable to thr_frame 2014-10-21 00:26:53 +02:00
twinaphex
49bffb85db (video_thread_wrapper.c) see prior commit msg 2014-10-20 20:20:12 +02:00
Twinaphex
03fb979730 (video_thread_wrapper.c) Fix 'declaration shadows local variable' 2014-10-14 22:16:01 +02:00
Twinaphex
d59074d9c8 (video_thread_wrapper.c) Fix 'declaration shadows global variables' 2014-10-14 19:04:42 +02:00
twinaphex
bcd5f8aa5b Add has_windowed to video driver and graphics context driver 2014-10-08 17:23:02 +02:00
aliaspider
0089087777 stop using thr->frame.within_thread for thread_set_osd_msg.
TODO: find a more reliable way to determine if the calling thread is the
video driver thread or not.
2014-10-08 03:02:04 +01:00
aliaspider
a30ca8a082 (Lakka) fix texture loading when video_threaded is set to 'true' 2014-10-06 02:41:53 +01:00
twinaphex
3a2f3755ad Rename some files 2014-10-01 23:27:52 +02:00
twinaphex
9fc34b6d2d video_thread_wrapper.c - use PATH_MAX sizes for chars 2014-10-01 16:25:14 +02:00
aliaspider
5df633b577 add set_osd_msg to the threaded video driver 2014-10-01 15:18:17 +01:00
Higor Eurípedes
85cef84bd4 (driver.c) Add driver_video_resolve()
This function returns the real video driver data when threaded video is
in use.
2014-09-12 17:26:26 -03:00
twinaphex
fe510bca6f Indenting/C-style comments 2014-09-08 17:57:18 +02:00
twinaphex
9bb044a79b video_thread_wrapper.c - make code safer - prevent more null pointer
dereferences
2014-08-14 16:39:35 +02:00
Higor Eurípedes
f53f155f2c (Threaded video) Fix null pointer dereferences 2014-08-14 10:16:24 -03:00
Themaister
4f481bfc92 Check refresh_rate every frame in thread wrapper. 2014-06-21 16:18:39 +02:00
twinaphex
c020f362b6 Remove hacky restart function in video interface 2014-05-30 17:57:21 +02:00
Themaister
b0e014adc6 Expose currently selected shader via poke interface. 2014-05-26 18:47:49 +02:00
Themaister
28d1e77a36 Fix GPU screenshots with GL + threaded driver. 2014-02-26 20:42:22 +01:00
twinaphex
b12274f704 (PS3) Get rid of warning: Variable is used before its value is set 2014-02-23 01:56:33 +01:00
twinaphex
603484a1da (Thread wrapper) Fix unused variable i warning 2014-02-19 16:30:28 +01:00
Hans-Kristian Arntzen
6a6f56a82e Do not reply on CMD_NONE.
Avoids potential deadlock.
2014-02-13 11:20:18 +01:00
Themaister
ef54422379 Avoid temporary garbage data in alpha mod. 2014-02-12 15:53:04 +01:00
Themaister
833259de93 Greatly improve performance with normalized overlays and threaded video.
SET_ALPHA_MOD would previously block on frame completion which only made
sense for non-normalized overlays.

This should also hopefully fix the ANR hang on Android.
2014-02-12 15:40:54 +01:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00