02-05-2012 12:32 AM - edited 02-05-2012 12:44 AM
Hi
Is it possible to call StartItemRequest() from a spawned thread so that the UI can continue to be updated by the main thread whilst the list panel items are drawn? Each list panel item I am creating currently takes >500ms to render and I want to have a busy indicator showing whilst this is happening - but I am getting an exception Sce.Pss.Core.Graphics cannot be accessed by multiple theads
I've put mutex's around what I can see to be my UI update calls but am getting this exception on the constructor of my ListPanelItem
I'd appreciate any guidance some of you might able to give!
on 07-05-2012 07:21 PM
26-06-2012 01:41 PM - edited 26-06-2012 01:48 PM
Hi!
I have the same ptoblem. "Sce.Pss.Core.Graphics cannot be accessed by multiple theads". And I can describe the steps or give you some code when it happens to me.
Description.
Assume that we have multiple game states. On of them is for loading and of them is drawing the actual gameplay. When I switch state to loading I start a background thread to load textures and other assets for the level while drawing some image in the main thread and I get this exception. I'm using v0.98 of SDK and PS Suite Simulator for testing curently. It seems that GraphicsContext is used to create a Texture2D object. Calling doing all GraphicsContext call on the same thread is not an option here as far as I understand this.
so:
1) starting game (splashes, menu, etc) one thread
2) beginning the actual game main thread to do drawing of "Loading Screen" and waiting until background thread finishes its job and the actual background thread to do loading. When I start the background thread I get exception mentioned earlier.
Will appreciate any help on this.
Artem
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870