Skip to content

Commit 8b446fa

Browse files
committed
Tracy zone for global scripts
1 parent ae4c780 commit 8b446fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Activities/GAScripted.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#include "BuyMenuGUI.h"
3636
#include "SceneEditorGUI.h"
3737

38+
#include "tracy/Tracy.hpp"
39+
3840
namespace RTE {
3941

4042
ConcreteClassInfo(GAScripted, GameActivity, 0);
@@ -448,6 +450,8 @@ void GAScripted::Update() {
448450
// Description: Updates globals scripts loaded with this activity.
449451

450452
void GAScripted::UpdateGlobalScripts(bool lateUpdate) {
453+
ZoneScoped;
454+
451455
// Update all global scripts
452456
for (std::vector<GlobalScript *>::iterator sItr = m_GlobalScriptsList.begin(); sItr < m_GlobalScriptsList.end(); ++sItr) {
453457
if ((*sItr)->ShouldLateUpdate() == lateUpdate) {

0 commit comments

Comments
 (0)