Skip to content

Commit

Permalink
vk: profiler: rename slows to speeds (enough kekage)
Browse files Browse the repository at this point in the history
  • Loading branch information
w23 committed Mar 23, 2023
1 parent 4a5fc18 commit 9cad2a6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ref/vk/r_slows.c → ref/vk/r_speeds.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "r_slows.h"
#include "r_speeds.h"
#include "vk_light.h" // For stats
#include "shaders/ray_interop.h" // stats: struct LightCluster
#include "vk_overlay.h"
Expand Down Expand Up @@ -327,7 +327,7 @@ static void togglePause( void ) {

}

void R_SlowsInit( void ) {
void R_SpeedsInit( void ) {
gEngine.Cmd_AddCommand("r_slows_toggle_pause", togglePause, "Toggle frame profiler pause");
}

Expand Down
5 changes: 3 additions & 2 deletions ref/vk/r_slows.h → ref/vk/r_speeds.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
#include "xash3d_types.h"
#include <stdint.h>

void R_SlowsInit( void );
void R_SpeedsInit( void );

void R_ShowExtendedProfilingData(uint32_t prev_frame_index, uint64_t gpu_frame_begin_ns, uint64_t gpu_frame_end_ns);

qboolean R_SpeedsMessage( char *out, size_t size );
// Called from the engine into ref_api to get the latest speeds info
qboolean R_SpeedsMessage( char *out, size_t size );
4 changes: 2 additions & 2 deletions ref/vk/vk_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "vk_nv_aftermath.h"
#include "vk_devmem.h"
#include "vk_commandpool.h"
#include "r_slows.h"
#include "r_speeds.h"

// FIXME move this rt-specific stuff out
#include "vk_light.h"
Expand Down Expand Up @@ -699,7 +699,7 @@ qboolean R_VkInit( void )
vk_core.rtx = false;
VK_LoadCvars();

R_SlowsInit();
R_SpeedsInit();

if( !gEngine.R_Init_Video( REF_VULKAN )) // request Vulkan surface
{
Expand Down
2 changes: 1 addition & 1 deletion ref/vk/vk_framectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "vk_querypool.h"

#include "profiler.h"
#include "r_slows.h"
#include "r_speeds.h"

#include "eiface.h" // ARRAYSIZE

Expand Down
2 changes: 1 addition & 1 deletion ref/vk/vk_rmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "vk_brush.h"
#include "vk_rpart.h"
#include "vk_triapi.h"
#include "r_slows.h"
#include "r_speeds.h"

#include "xash3d_types.h"
#include "com_strings.h"
Expand Down

0 comments on commit 9cad2a6

Please sign in to comment.