| 54 | } |
| 55 | |
| 56 | void 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 | |
| 67 | void RemoteDebuggerClient::SendResourceLoadedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name, const wchar_t* Path, float LoadingTime) |
| 68 | { |