Skip to content

Commit

Permalink
Remove benchmarking functionality
Browse files Browse the repository at this point in the history
Resolves twhl-community#54

(cherry picked from commit 322f229)
  • Loading branch information
SamVanheer authored and LogicAndTrick committed Dec 24, 2021
1 parent c2efd13 commit 26c5400
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 1,496 deletions.
26 changes: 0 additions & 26 deletions cl_dll/bench.h

This file was deleted.

4 changes: 0 additions & 4 deletions cl_dll/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "pm_defs.h"
#include "pmtrace.h"
#include "pm_shared.h"
#include "bench.h"
#include "Exports.h"

#include "particleman.h"
Expand All @@ -37,7 +36,6 @@ int DLLEXPORT HUD_AddEntity( int type, struct cl_entity_s *ent, const char *mode
switch ( type )
{
case ET_NORMAL:
Bench_CheckEntity( type, ent, modelname );
break;
case ET_PLAYER:
case ET_BEAM:
Expand Down Expand Up @@ -312,8 +310,6 @@ void DLLEXPORT HUD_CreateEntities()
Beams();
#endif

Bench_AddObjects();

// Add in any game specific objects
Game_AddObjects();

Expand Down
55 changes: 0 additions & 55 deletions cl_dll/hud.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,60 +480,6 @@ class CHudStatusIcons: public CHudBase

};

//
//-----------------------------------------------------
//
class CHudBenchmark : public CHudBase
{
public:
int Init() override;
int VidInit() override;
int Draw( float flTime ) override;

void SetScore( float score );

void Think() override;

void StartNextSection( int section );

int MsgFunc_Bench(const char *pszName, int iSize, void *pbuf);

void CountFrame( float dt );

int GetObjects() { return m_nObjects; }

void SetCompositeScore();

void Restart();

int Bench_ScoreForValue( int stage, float raw );

private:
float m_fDrawTime;
float m_fDrawScore;
float m_fAvgScore;

float m_fSendTime;
float m_fReceiveTime;

int m_nFPSCount;
float m_fAverageFT;
float m_fAvgFrameRate;

int m_nSentFinish;
float m_fStageStarted;

float m_StoredLatency;
float m_StoredPacketLoss;
int m_nStoredHopCount;
int m_nTraceDone;

int m_nObjects;

int m_nScoreComputed;
int m_nCompositeScore;
};

//
//-----------------------------------------------------
//
Expand Down Expand Up @@ -616,7 +562,6 @@ class CHud
CHudAmmoSecondary m_AmmoSecondary;
CHudTextMessage m_TextMessage;
CHudStatusIcons m_StatusIcons;
CHudBenchmark m_Benchmark;

void Init();
void VidInit();
Expand Down
Loading

0 comments on commit 26c5400

Please sign in to comment.