aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2013-08-03 15:42:25 -0700
committerDiva Canto2013-08-03 15:42:25 -0700
commitb857353fc932bdf775abce2a3d34140cafe916ce (patch)
tree825e1f93c4cca61815dedf6bc7706c47ff43fffe
parentAmend Justin's last commit regarding the new config var ServiceVersion. The s... (diff)
downloadopensim-SC_OLD-b857353fc932bdf775abce2a3d34140cafe916ce.zip
opensim-SC_OLD-b857353fc932bdf775abce2a3d34140cafe916ce.tar.gz
opensim-SC_OLD-b857353fc932bdf775abce2a3d34140cafe916ce.tar.bz2
opensim-SC_OLD-b857353fc932bdf775abce2a3d34140cafe916ce.tar.xz
Making the J2KDecoderModule decoder function async. Could this be the cause of sim freeze? -- HandleRequestImage in LLClientView is now sync, which means that it cannot take too long to complete. However, its execution path may end up in J2KDecoderModule.Decode, which is heavy and could stop the packet processing thread while it's at it.
-rw-r--r--OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs b/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
index 3764685..d9b0eff 100644
--- a/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
@@ -166,7 +166,7 @@ namespace OpenSim.Region.CoreModules.Agent.TextureSender
166 166
167 // Do Decode! 167 // Do Decode!
168 if (decode) 168 if (decode)
169 Decode(assetID, j2kData); 169 Util.FireAndForget(delegate { Decode(assetID, j2kData); });
170 } 170 }
171 } 171 }
172 172