History

Moved MyAvatar update at the end of Application::update() to have latest data for simulation

Atlante45 committed 12 years ago

Commit 5fd3fd91 parent 490dad61 file · +6 −6Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+6−6
@@ -2072,12 +2072,6 @@ void Application::update(float deltaTime) { · 2071 unmodified lines
20722072 _prioVR.update(deltaTime);
20732073
20742074 }
2075− {
2076− PerformanceTimer perfTimer("myAvatar");
2077− updateMyAvatarLookAtPosition();
2078− updateMyAvatar(deltaTime); // Sample hardware, update view frustum if needed, and send avatar data to mixer/nodes
2079− }
2080−
20812075
20822076 // Dispatch input events
20832077 _controllerScriptingInterface.updateInputControllers();
@@ -2109,6 +2103,12 @@ void Application::update(float deltaTime) { · 25 unmodified lines
21092103 PerformanceTimer perfTimer("overlays");
21102104 _overlays.update(deltaTime);
21112105 }
2106+
2107+ {
2108+ PerformanceTimer perfTimer("myAvatar");
2109+ updateMyAvatarLookAtPosition();
2110+ updateMyAvatar(deltaTime); // Sample hardware, update view frustum if needed, and send avatar data to mixer/nodes
2111+ }
21122112
21132113 {
21142114 PerformanceTimer perfTimer("emitSimulating");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t