diff options
author | Dr Scofield | 2009-06-09 06:39:27 +0000 |
---|---|---|
committer | Dr Scofield | 2009-06-09 06:39:27 +0000 |
commit | 759636f37e4ea212af4ca40565b2d4e9be1eebbe (patch) | |
tree | a61ad3c3cf5fa5991625064e2d6f78f555c8f9e0 /OpenSim/Region/Framework/Interfaces | |
parent | Updating the flotsam asset cache. Thank you, mcortez! (diff) | |
download | opensim-SC_OLD-759636f37e4ea212af4ca40565b2d4e9be1eebbe.zip opensim-SC_OLD-759636f37e4ea212af4ca40565b2d4e9be1eebbe.tar.gz opensim-SC_OLD-759636f37e4ea212af4ca40565b2d4e9be1eebbe.tar.bz2 opensim-SC_OLD-759636f37e4ea212af4ca40565b2d4e9be1eebbe.tar.xz |
From: Alan Webb <alan_webb@us.ibm.com>
This change addresses two issues:
[1] It adds a flag field to the blendface call which allows the
caller to indicate whether or not the generated asset is
temporary, and whether or not the asset being replaced should
be explicitly retired fromt the memory cache. The decimal
values correspond to:
0 - Permanent asset, do not expire old asset
1 - Permanent asset, expire old asset
2 - Temporary asset, do not expire old asset
3 - Temporary asset, expire old asset
'3' corresponds to the default behavior seen today, and is
the continued behavior of the non-blendface calls.
[2] The dynamic texture routines are highly-asynchronous and can
be scheduled simultaneously on a multi-core machine. The nature
of the texture management interfaece is such that updates may
be lost, and the nature of asynchornous operation means that
they may be processed out of order. A lock has been added to
ensure that updates are at least atomic. No attempt has been
made to enforce ordering. The lock applies to the SceneObjectPart
being updated and is held for the lifetime of the TextureEntry
used to carry texture updates (the one instance carries all
faces supported by the prim).
Users of these services should remember that the dynamic texture
call is asynchronous and control will be returned *before* the
texture update has actually occurred. As a result, a isubsequent
GetTexture call may not return the expected asset id. A script
must wait for the corresponding TEXTURE_CHANGED event before
retrieving any texture information.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs b/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs index f82b322..95f9cef 100644 --- a/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs +++ b/OpenSim/Region/Framework/Interfaces/IDynamicTextureManager.cs | |||
@@ -30,8 +30,10 @@ using OpenMetaverse; | |||
30 | 30 | ||
31 | namespace OpenSim.Region.Framework.Interfaces | 31 | namespace OpenSim.Region.Framework.Interfaces |
32 | { | 32 | { |
33 | |||
33 | public interface IDynamicTextureManager | 34 | public interface IDynamicTextureManager |
34 | { | 35 | { |
36 | |||
35 | void RegisterRender(string handleType, IDynamicTextureRender render); | 37 | void RegisterRender(string handleType, IDynamicTextureRender render); |
36 | void ReturnData(UUID id, byte[] data); | 38 | void ReturnData(UUID id, byte[] data); |
37 | 39 | ||
@@ -40,13 +42,13 @@ namespace OpenSim.Region.Framework.Interfaces | |||
40 | UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams, | 42 | UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams, |
41 | int updateTimer, bool SetBlending, byte AlphaValue); | 43 | int updateTimer, bool SetBlending, byte AlphaValue); |
42 | UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams, | 44 | UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams, |
43 | int updateTimer, bool SetBlending, byte AlphaValue, int face); | 45 | int updateTimer, bool SetBlending, int disp, byte AlphaValue, int face); |
44 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, | 46 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, |
45 | int updateTimer); | 47 | int updateTimer); |
46 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, | 48 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, |
47 | int updateTimer, bool SetBlending, byte AlphaValue); | 49 | int updateTimer, bool SetBlending, byte AlphaValue); |
48 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, | 50 | UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams, |
49 | int updateTimer, bool SetBlending, byte AlphaValue, int face); | 51 | int updateTimer, bool SetBlending, int disp, byte AlphaValue, int face); |
50 | void GetDrawStringSize(string contentType, string text, string fontName, int fontSize, | 52 | void GetDrawStringSize(string contentType, string text, string fontName, int fontSize, |
51 | out double xSize, out double ySize); | 53 | out double xSize, out double ySize); |
52 | } | 54 | } |