logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 1 / 3
endrift
it optimized out the function pointer table
furyhunter
is it worth selling a brand new n3ds XL to exchange for the animal crossing bundle
vaguerant
Surely that depends on how much cash you have, how much you value the regular size N3DS, etc.
pauldachz
I'm half-expecting supply to not meet demand on these small N3DSes because of the incredible amount of begging dipsh*ts have done over here.
Then again the only person I know that's really been pining after one of these is RemixDeluxe, who's dumb enough to feel *betrayed* that nobody taught him the quality differences between every type of video cable you can hook a game console up with.
endrift
I'm like 90% sure that the crash is due to problems with sf2dlib
I should dump sfdlib for most of this tbh
vaguerant
Yes.
profi200 was just saying same in the other channel.
[18:16:09] <profi200> Btw: mGBA uses sf2dlib in between which is not needed. It renders in sw and she could just transfer the back buffer directly. https://github.com/mgba-emu/mgba/blob/master/src/platform/3ds/main.c#L110
[18:23:24] <profi200> ..or implement hw accelerated rendering which would speedup the emu a lot.
endrift
the reason I'm not transferring directly is so that I can sc--wait a second
yeah
I can just not use sf2dlib in that function at all
oh no wait right I'd need to rotate it
I think?
we'll see
I do want to get rid of sf2dlib entirely at some point
but I'm not proficient enough with the libraries to do that yet
I'll do that later...need to just get things somewhat working in other places first
but hopefully I can get some help with that when I eventually want to take it out back and shoot it
Lectem
[08:43] (endrift) [06:41:29] Lectem: https://github.com/Lectem/3ds-cmake/blob/master/DevkitArm3DS.cmake#L49 is that D supposed to be there? < no
It doesnt really matter though
I could probably even remove it since dka isnt supposed to generate shared libs
endrift: updated
vaguerant
What's the deal, I've been playing Rayman 3 on mGBA for like 10 minutes with no freezing.
Woop, there it is.
That took ages.
KuKzz
endrift: you're not in vitadev on efnet so can i ask here? mgba alpha4 crashes on unity 1.06 on vita, is it supposed to work? 3.1 works on same vita
archshift
>> #mgba
hiruyfek
Hi:-)
Bond697
.
Dazzozo
.
yuriks
!
StapleButter
,
Lectem
§
StapleButter
¤
yuriks
30!-
endrift
KuKzz: I'm in #mgba and #vitasdk :P
KuKzz: see also https://twitter.com/endrift/status/638791962561265664
KuKzz
hm
will try that
vaguerant
endrift, here's some discussion re: the freezing from EFnet's #3dsdev: http://pastie.org/private/rszwdtjlnzhzcei9m8iga
endrift
vaguerant: so I looked at the code and it turns out I try to clear a cache BEFORE I do to the gspWaitPPF or whatever it's called
but even moving that didn't fix it
I tried to do the direct display transfer but it...had problems
due to the fact that the colorspace is different
*pixel format
the pixels are generated in 565, but the screen is 888
Lectem
you can change it
yuriks
display transfer can convert
but I'm not sure if in that direction
endrift
and trying to use GX to redo it had weird problems
Lectem
or you could send it to a texture using display transfer
yuriks
also, the 3DS screen is actually portrait, not landscape
endrift
^
Lectem
btw, did you try to disable 3ds specific rendering to check for bugs?
yuriks
so you need to rotate it somehow anyway
endrift
that's part of the problem too
I don't really know how to do that
Lectem
just write some stuff every s with printf
instead of drawing with sf2d
at least you'll know if it comes from sf2d or not
endrift
I also figured out why sf2dlib crashes when you allocate a texture in VRAM haha
Lectem: yeah I did
I just left audio in haha
it's totally a bug in that routine
Lectem
I would point you to my video player, but the code for gpu stuff needs hell lot of cleaning
endrift
I want to dump sf2dlib entirely, preferably by the end of the week
and do stuff directly with the GPU
I use sf2dlib in my menu font stuff too so I'll need to figure that out first
yuriks
might also be missing an interrupt event and then dying waiting for it
so maybe adding timeouts to the wait functions can help too
endrift
^ that was my first though
Lectem
is your buffer aligned ?
endrift
Lectem: which buffer?
Lectem
the one you use to create the sf2d texture
endrift
the texture that sf2dlib is using, or the input buffer
Lectem
ah nvm, the texture is allocated via sf2d
endrift
yes, and it's aligned
I do want to get rid of some steps in the middle
and also fix the audio
yuriks
there's just so many ways of freezing that damn gpu -_-
endrift
https://github.com/mgba-emu/mgba/blob/master/src/platform/3ds/main.c#L110-L118 notice how I do stuff between starting the transfer and waiting for it to finish
I assume the bug is me missing the interrupt
but I moved all the stuff so I called gspWaitForPPF immediately and it didn't fix it
it still froze after ~10 minutes
yuriks
endrift: yeah, I mean that in the sense that perhaps the interrupt just doesn't fire sometimes
once the event is signalled it'll stay signalled until you wait on it, so doing other stuff in between shouldn't matter
though, you should flush the cache before starting the transfer
same thing for the vsync, but that one's probably buried somewhere inside sf2dlib, right?
endrift
yuriks: I had a version that put flushes on either end and the wait immediately
yes
I REALLY want to dump sf2dlib
yuriks, file a PR pretty please? :)
yuriks
:<
endrift
I even had a dream last night that I was bugging you about 3DS GPU stuff ;_;
yuriks
you twitted about it, at least haha
tweeted*
endrift
I know
« prev 1 2 3 4 5 6 next »