diff options
author | Diva Canto | 2013-08-03 15:42:25 -0700 |
---|---|---|
committer | Diva Canto | 2013-08-03 15:42:25 -0700 |
commit | b857353fc932bdf775abce2a3d34140cafe916ce (patch) | |
tree | 825e1f93c4cca61815dedf6bc7706c47ff43fffe /OpenSim/Region | |
parent | Amend Justin's last commit regarding the new config var ServiceVersion. The s... (diff) | |
download | opensim-SC-b857353fc932bdf775abce2a3d34140cafe916ce.zip opensim-SC-b857353fc932bdf775abce2a3d34140cafe916ce.tar.gz opensim-SC-b857353fc932bdf775abce2a3d34140cafe916ce.tar.bz2 opensim-SC-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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs | 2 |
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 | ||