UI Toolkit

Reply

Calling StartItemRequest() / ListItemCreator / ListItemUpdater in a seperate thread?

[ Edited ]

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!

PSS port of Blitz Bombers
http://blitzbombers.blogspot.com

Please use plain text.

Re: Calling StartItemRequest() / ListItemCreator / ListItemUpdater in a seperate thread?

Hi Yakkity,

Thank you for the report. After some quick tests here, it appears that there are some minor issues with running with on multiple threads, and this has also been noted by another user on these forums.

If you are able to post some of your code so we can see how your implementing it, that would be highly beneficial(don't worry about assets).

Thanks,
James
PlayStation®Mobile Dev Team
Please use plain text.

Re: Calling StartItemRequest() / ListItemCreator / ListItemUpdater in a seperate thread?

[ Edited ]

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

Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

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を一度ログアウトし、再度ログインしてください。






Recent News