| ||
| Views: 3,921,474 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 09-13-26 05:50 PM |
| Guest: | ||
| 0 users reading Is it possible to use the GPU from the sys core thread? | 1 bot |
| Main - Homebrew discussion - Is it possible to use the GPU from the sys core thread? | Show post layouts | New reply |
| Pate |
| ||
|
Newcomer Normal user Level: 4 Posts: 1/2 EXP: 175 Next: 104 Since: 02-21-16 Last post: 3857 days ago Last view: 3843 days ago |
Hi all, first time posting here, just registered. Been reading the existing posts for a few weeks, though.
Anyways, I am trying to access the GPU from a thread running on the sys core, but I keep failing. I have tried with some of the devkitpro demos, and when those failed I tried using blargGL, but that also fails. The same program that works fine when calling the GPU stuff 'normally', just generates a black screen (and usually a hang) when I move the graphics stuff to the thread that runs on the sys core. I have tried both moving only the scene rendering, and moving everything including gfxInitDefault() to the sys core thread. Is there some technical reason why this would fail, is the problem in my code, or is the probable cause something in between (the devkit does not support such, but it could be made to work)? Thanks! Pate |
| Arisotura |
| ||
|
Member blarg Level: 30
Posts: 160/184 EXP: 164403 Next: 1466 Since: 10-27-14 From: France Last post: 3309 days ago Last view: 3220 days ago |
I fail to see why the GPU wouldn't be usable from the syscore, but with the 3DS, you never know... |
| profi200 |
| ||
|
Member Who knows? Level: 20 Posts: 52/70 EXP: 37650 Next: 4789 Since: 05-21-15 From: Germany Last post: 3654 days ago Last view: 3522 days ago |
Do you move the flush/swap/wait for VBlank stuff too? Otherwise i'm not sure why this should not work on sys core threads. |
| Pate |
| ||
|
Newcomer Normal user Level: 4 Posts: 2/2 EXP: 175 Next: 104 Since: 02-21-16 Last post: 3857 days ago Last view: 3843 days ago |
Thanks for the quick replies! Yeah, I have tried both moving the VBlank stuff and without moving it, both ways fail.
I have noticed that ctrulib handles all those wait methods by generating a new thread that polls the shared memory, and I suspect this may be part of the problem. I believe the polling thread is always created on the main CPU. But even when I am not waiting for anything in the sys core thread, I still get no output from the GPU. Strange.. |
| Main - Homebrew discussion - Is it possible to use the GPU from the sys core thread? | Show post layouts | New reply |
|
Page rendered in 0.011 seconds. (2048KB of memory used) MySQL - queries: 26, rows: 69/69, time: 0.006 seconds.
Acmlmboard 2.064 (2018-07-20)© 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |