mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 10:52:59 +00:00
# Add GPU performance profiling support.
Add some profiler region attributes. Render events in profile visualiser. Change profiler from GPL to MIT. This was SVN commit r10492.
This commit is contained in:
@@ -85,6 +85,9 @@ public:
|
||||
{
|
||||
JSContext* cx = GetSimContext().GetScriptInterface().GetContext();
|
||||
|
||||
PROFILE2_EVENT("post net command");
|
||||
PROFILE2_ATTR("command: %s", GetSimContext().GetScriptInterface().StringifyJSON(cmd.get(), false).c_str());
|
||||
|
||||
// TODO: would be nicer to not use globals
|
||||
g_Game->GetTurnManager()->PostCommand(CScriptValRooted(cx, cmd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user