Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Open Simulator Technical Help
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
OpenSimulator Internals/Asset Connector
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Simulator-Side Call Paths == === Synchronous Get -- local asset === # Scene.AssetService.Get(id) # IsHG(id) = false # Check m_Cache.Get() -- return asset if hit, return null if negatively cached # GetFromLocal(id) -- calls m_localConnector.Get(id) directly (inlined) # On miss: m_Cache.CacheNegative(id) # On hit: m_Cache.Cache(asset), return asset === Synchronous Get -- HyperGrid asset === # Scene.AssetService.Get(id) # IsHG(id) = true # GetForeign(id): #* Util.ParseForeignAssetID(id) -- extracts URI and UUID string #* Check m_Cache.GetCached(uuidstr) #* GetFromLocal(uuidstr) -- check local store first #* If not found locally: GetFromForeign(uuidstr, uri) via m_HGConnector # Check m_AssetPerms.AllowedImport() -- return null if not permitted # Store(asset) -- persist to local grid if permitted # Return asset === Synchronous Get -- with known foreign service URI === # Get(id, ForeignAssetService, StoreOnLocalGrid) # Check m_Cache.GetCached(id) # GetFromLocal(id) # On local miss: GetFromForeign(id, ForeignAssetService) #* Check AssetPerms.AllowedImport() -- CacheNegative and return null if denied #* StoreLocal(asset) if StoreOnLocalGrid=true #* Cache(asset) # On foreign miss: CacheNegative(id) === Asynchronous Get -- local === # Get(id, sender, callBack) # Check m_Cache.GetFromMemory() -- invoke callback immediately if found or negatively cached # UUID.Zero check -- invoke callback with null and return false # Lock m_AssetHandlers: #* If request already in-flight for this id: append callback to handler list, return #* Otherwise: create handler list, add to m_AssetHandlers, enqueue id to m_localRequestsQueue # AssetRequestProcessor dequeues, calls Get(id), notifies all handlers via FireAndForget === Asynchronous Get -- HyperGrid === # Get(id, ForeignAssetService, StoreOnLocalGrid, callBack) # Same cache and deduplication logic as async local # If ForeignAssetService is empty: enqueue to m_localRequestsQueue # Otherwise: enqueue ForeignAssetServiceGetData struct to m_remoteRequestsQueue # AssetRequestProcessor calls Get(id, ForeignAssetService, StoreOnLocalGrid) ----
Summary:
Please note that all contributions to Open Simulator Technical Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Open Simulator Technical Help:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
OpenSimulator Internals/Asset Connector
(section)
Add topic