#include "Render/DX9/DeviceOwnerDX9.h" #include "Render/DX9/RendererDX9.h" #include "UI/Window/UIWindowMgr.h" #include #include // OFFSET: 0x00565B70 // FUNCTION: fn_02223 HRESULT CRendererDX9::Present(int option) { ++this->frame; ++this->frames; const unsigned now = timeGetTime(); const unsigned elapsed = now - this->lastTick; if (elapsed >= 1000) { const unsigned count = this->frames; this->frames = 0; this->lastTick = now; this->fps = static_cast(count) / (static_cast(elapsed) / 1000.0f); } static constexpr char source[] = "C:\\repositories\\RagnarokClient\\RagnarokClient\\3dLib\\RendererDX9.cpp"; g_renderDiagnosticLine = 161; g_renderDiagnosticFile = source; const HRESULT result = this->device->Present(option); g_renderDiagnosticLine = 164; g_renderDiagnosticFile = source; return result; }