Commit Graph

155 Commits

Author SHA1 Message Date
twinaphex bea512b70b Get rid of gfx_display_draw_texture - use gfx_display_draw_quad instead 2021-08-22 17:57:21 +02:00
twinaphex 54ae219302 Fix gfx_display_draw_texture - fixes D3D11/D3D12/D3D10 OSK issues 2021-08-22 17:17:09 +02:00
Connor McLaughlin 5d3719df44 (gfx) Fix uninitialized variables in gfx_display_draw_cursor 2021-06-22 13:52:13 +10:00
twinaphex cd9d6c0511 gfx_display - Get rid of lots of pointer grabbing 2021-03-25 20:12:34 +01:00
twinaphex 8064af8f15 Get rid of more pointer grabbing 2021-03-25 19:22:12 +01:00
twinaphex fada1caf68 Move two widgets functions over to proper source file 2021-03-25 04:55:27 +01:00
twinaphex 1f4dd522ab (RGUI) Cut down on gfx_display_get_fb_size 2021-03-22 01:58:43 +01:00
twinaphex e5ca68a518 Simplify video_driver_get_ptr 2021-03-21 17:33:44 +01:00
twinaphex 60a112ec97 Reduce dummy display driver null implementations with one 2021-02-02 12:28:17 +01:00
Nathan Strong 0e0fbb53f9 Remove the path_is_valid() call when loading textures
== DETAILS
The `path_is_valid()` call ends up invoking `stat()`, which is unpredictable.
It's practically free when implemented by an operating system (Linux, Windows),
but on embedded systems it can be problematic.

In the case of the Wii U, the stat() call actually ends up taking longer than
the file I/O. And the texture loading code already handles a "file not found"
case, so the stat() call ends up just being a waste of time.

Removing this reduces the texture load time from ~210-250ms down to 60-65ms
on average.
2021-01-07 21:06:07 -08:00
twinaphex 0bfbf81b49 Cleanups 2020-10-02 14:33:35 +02:00
twinaphex 4adfaa07fc Cleanups 2020-10-02 14:16:12 +02:00
twinaphex 079c2dadff (gfx_display.c) Do early returns before computing a bunch of stuff 2020-10-02 14:07:01 +02:00
twinaphex 2e752d93cc Cleanup 2020-10-01 18:34:01 +02:00
twinaphex cecd48e6b5 gfx_display_draw_cursor - take out early return 2020-10-01 18:22:29 +02:00
twinaphex e8ab0a892a gfx_display_get_adjusted_scale_internal - cleanup 2020-10-01 12:33:58 +02:00
twinaphex 4f82c26f6c Cleanups 2020-10-01 12:26:49 +02:00
twinaphex 48a2e0528d gfx_display_font_file - cleanup 2020-10-01 12:24:17 +02:00
twinaphex d08a3b2310 These functions were never used 2020-10-01 12:22:56 +02:00
twinaphex 4965b78ea3 PARTICLES_COUNT doesn't seem used anymore 2020-10-01 12:21:57 +02:00
twinaphex f8b828e623 gfx_display_draw_bg - cleanups 2020-09-30 18:56:46 +02:00
twinaphex 8683f68ccb Cleanup 2020-09-30 18:52:22 +02:00
twinaphex 0642ea6d5d Remove gfx_display_snow 2020-09-30 15:57:21 +02:00
twinaphex 0ec93e7fff (gfx_display) Cleanups 2020-09-28 07:22:52 +02:00
twinaphex 1e61480e0a Get rid of get/set_header_height 2020-09-28 05:06:02 +02:00
twinaphex 03ff504aa8 Remove gfx_display_scissor_end 2020-09-28 04:04:16 +02:00
twinaphex d44ab6facf framebuffer_dirty functions - remove these and set member variables
directly in rgui.c and retroarch.c
2020-09-28 03:49:13 +02:00
twinaphex f38eb84cc7 Move gfx_display_draw_text to retroarch.c and get rid of
video_driver_set_osd_msg
2020-09-28 03:38:16 +02:00
twinaphex 9d6bfabd02 Move reset_list_buffer to gfx_widgets and turn it into a static function 2020-09-28 03:30:22 +02:00
twinaphex e87b44a68c Remove stub functions in null display driver 2020-09-27 00:18:16 +02:00
twinaphex e1dbf5dab1 Remove drivers_display viewport - was unused 2020-09-26 22:01:23 +02:00
twinaphex fbe0924d44 Remove some stub functions 2020-09-26 21:40:16 +02:00
twinaphex e428166a05 Remove unused gfx_display_get_framebuffer_pitch 2020-09-26 20:04:55 +02:00
twinaphex f22488f620 gfx_display_coords_array_reset unused - remove 2020-09-26 20:03:20 +02:00
twinaphex 14c9ccfda8 Remove gfx_display_{set/get}_driver_id 2020-09-26 19:58:15 +02:00
twinaphex bc43db1789 Remove gfx_display_get_coords_array 2020-09-25 10:31:07 +02:00
Twinaphex e0d04c29bc Fix regression 2020-09-24 09:39:02 +02:00
twinaphex 8c440ef72c Optimize gfx_display_draw_keyboard 2020-09-24 09:07:47 +02:00
twinaphex eb0376fe7d Do white texture freeing outside of gfx_display_init_white_texture 2020-09-24 07:03:24 +02:00
twinaphex a74d24c3ce Rename gfx_display_allocate_white_texture to
gfx_display_init_white_texture
2020-09-24 06:46:21 +02:00
twinaphex 2ab0300c33 gfx_display.c - can drop dependency now on gfx_animation.h 2020-09-24 06:00:32 +02:00
twinaphex 37237db804 GFX_DISPLAY_GET_UPDATE_PENDING - turn function into macro 2020-09-24 05:59:14 +02:00
twinaphex c040e4cd08 Cleanups 2020-09-23 22:14:30 +02:00
twinaphex 4fb2065061 Get rid of gfx_display_draw_pipeline 2020-09-23 21:56:48 +02:00
twinaphex 557b445b27 Cleanups 2020-09-23 21:44:23 +02:00
twinaphex 5a481d8653 Get rid of gfx_display_blend_{begin/end} 2020-09-23 21:37:18 +02:00
twinaphex 43b43351fa Start making gfx_display_blend_begin and gfx_display_blend_end
unnecessary
2020-09-23 09:32:42 +02:00
twinaphex 77abaac79c Get rid of duplicate function gfx_display_draw_blend 2020-09-22 04:13:53 +02:00
twinaphex bde4abfe8b (Gfx display driver) Get rid of unused restore_clear_color/clear_color 2020-09-22 04:03:19 +02:00
twinaphex 02985900c8 Get rid of unused gfx_display_restore_clear_color 2020-09-22 03:56:02 +02:00
twinaphex 6bb3e37d53 Get rid of gfx_display_clear_color 2020-09-22 03:54:22 +02:00
twinaphex 97225bfe64 (gfx_display.c) Cleanups 2020-09-22 03:53:10 +02:00
twinaphex d898304ee5 Get rid of gfx_display_draw_gradient 2020-09-22 03:29:48 +02:00
twinaphex 3a37e13a54 Call video_driver_set_viewport directly 2020-09-15 11:05:47 +02:00
twinaphex bac1f1fd51 Cleanup 2020-09-11 13:48:23 +02:00
twinaphex 4ca691acc9 Cleanup 2020-09-04 03:32:25 +02:00
twinaphex 0cba3104be Turn array static 2020-09-01 04:15:20 +02:00
twinaphex 50efd72a8e gfx_display_draw_texture_slice - don't use malloc/free 2020-08-21 10:03:32 +02:00
twinaphex dffa052958 Rearrange draw struct 2020-08-14 15:58:43 +02:00
twinaphex c250b94dcf Move p_anim state to rarch_state 2020-08-14 06:29:13 +02:00
twinaphex e45d04b826 Cleanups 2020-08-03 22:09:14 +02:00
twinaphex cb8b2db3ad Turn this function static 2020-08-03 01:41:48 +02:00
twinaphex 3e41cbc381 Revert "Add get_metrics to poke interface"
This reverts commit 119689c940.
2020-08-02 23:44:28 +02:00
twinaphex 119689c940 Add get_metrics to poke interface 2020-08-02 19:25:45 +02:00
twinaphex d384b215f4 Hopefully silences Emscripten warning 2020-07-23 11:32:50 +02:00
twinaphex 2f6ba7f477 Silence Emscripten warnings and leave TODO/FIXME note 2020-07-23 06:50:08 +02:00
Yoshi Sugawara 6308ba1acb support ApplePlatform for iOS and conform app delegate class to it, move app delegate class to apple_platform.h, fix metal references for iOS 2020-07-07 05:03:42 -10:00
twinaphex be886bf2aa Update log message 2020-06-08 18:01:15 +02:00
twinaphex a87d15e361 Cleanups 2020-06-08 05:52:25 +02:00
twinaphex ce02161255 Cleanups 2020-06-07 23:01:52 +02:00
twinaphex 5e2649a6f5 Move gfx_display global state to rarch state 2020-06-07 22:58:06 +02:00
twinaphex 9059b4962e Cleanups 2020-06-07 00:05:41 +02:00
twinaphex 02bc3ee1e8 Buildfixes/cleanups 2020-05-26 21:34:05 +02:00
jdgleaver 1440b46eb0 Fix 'gfx_display_draw_texture_slice()' (i.e. prevent glitches when rendering Ozone's selection cursor) 2020-03-26 11:45:28 +00:00
jdgleaver 9194a3b24d (Menu) Prevent font-related segfaults when using extremely small scales/window sizes 2020-03-24 16:14:53 +00:00
jdgleaver 018209d6c2 Use single 'Widgets Scale Override' setting on console and mobile platforms 2020-03-12 11:29:53 +00:00
twinaphex 7f958862fe cleanups 2020-03-09 01:32:05 +01:00
twinaphex e08689ed98 (Menu) Cleanups 2020-03-09 01:26:43 +01:00
twinaphex a0446f778c Cleanups 2020-03-09 00:34:31 +01:00
twinaphex 13249f6011 Cleanups 2020-03-09 00:08:18 +01:00
twinaphex d72596142e gfx_display_draw_quad - no longer dependent on video_frame_info 2020-03-08 23:56:22 +01:00
twinaphex b24d1f06aa gfx_display_scissor_begin/end - get rid of video_frame_info dependency 2020-03-08 22:58:17 +01:00
twinaphex 044619281c gfx_display_draw - remove video_frame_info dependency 2020-03-08 22:52:02 +01:00
twinaphex d42a76dec1 Simplify conditional and fix clear_color call 2020-03-08 22:36:51 +01:00
twinaphex 6cb6f76add gfx_display_rotate_z - get rid of video_frame_info dependency 2020-03-08 22:33:11 +01:00
twinaphex e4aa0fd544 (gfx display) Get rid of video_frame_info dependency for
blend_begin/blend_end
2020-03-08 22:28:42 +01:00
twinaphex c16568cf32 (gfx drivers display) No more video_frame_info dependency 2020-03-08 22:06:08 +01:00
twinaphex 7a9684b6ea (Gfx display) scissor_begin/scissor_end - drop video_frame_info dependency 2020-03-08 22:06:08 +01:00
twinaphex 591bb36e03 (gfx display) blend_begin/blend_end - no more dependency on
video_frame_info
2020-03-08 21:02:03 +01:00
twinaphex 809e22ec1a (gfx display) set_viewport - no longer dependent on video_frame_info 2020-03-08 20:23:39 +01:00
twinaphex 874510152e (drivers_display) Get rid of video_frame_info argument for
get_default_mvp
2020-03-08 19:59:03 +01:00
twinaphex 9b0ff1fd0d (gfx_display.c) Cleanup 2020-03-07 20:53:39 +01:00
twinaphex 544df2f03c Create global state for gfx_display 2020-03-06 16:33:34 +01:00
twinaphex a6995c0336 (gfx_display.c) Cleanup video coord array 2020-03-06 16:12:24 +01:00
twinaphex e06a6b62c8 (gfx_display.c) Change some of the naming conventions to make it
clear this is no longer code bound to the menu
2020-03-06 16:06:44 +01:00
twinaphex fb04376722 (gfx_display.c) Cleanups 2020-03-06 16:01:45 +01:00
twinaphex d1276258ea Add TODO/FIXME note 2020-03-06 15:55:22 +01:00
twinaphex 2637bd648b Cleanups 2020-03-04 19:13:30 +01:00
jdgleaver 29f8189d0e Add independent widget scale override settings for fullscreen/windowed modes 2020-03-04 17:10:49 +00:00
twinaphex 46cacfc60e (gfx_display.c) Cleanups 2020-02-18 13:04:12 +01:00