MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SendPerformanceCounter

Method SendPerformanceCounter

LuaSTGPlus/RemoteDebuggerClient.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void RemoteDebuggerClient::SendPerformanceCounter(float FPS, float ObjCount, float FrameTime, float RenderTime)
57{
58 shared_ptr<Value> tMessage = make_shared<Value>(ValueType::Dictionary);
59 tMessage->VDict["fps"] = make_shared<Value>(static_cast<int>(FPS * 1000.f));
60 tMessage->VDict["objects"] = make_shared<Value>(static_cast<int>(ObjCount * 1000.f));
61 tMessage->VDict["frametime"] = make_shared<Value>(static_cast<int>(FrameTime * 1000.f * 1000.f));
62 tMessage->VDict["rendertime"] = make_shared<Value>(static_cast<int>(RenderTime * 1000.f * 1000.f));
63
64 sendUdpMessage(UdpMessageType::PerformanceUpdate, tMessage);
65}
66
67void RemoteDebuggerClient::SendResourceLoadedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name, const wchar_t* Path, float LoadingTime)
68{

Callers 1

OnUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected