logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / August / 24 / 2
endrift
(I figured libpng would be useful for screenshots and the like)
(maybe eventually...)
yuriks
wonder how large lodepng is
you can configure it to remove things you don't want so I guess it might be able to get pretty small
endrift
https://twitter.com/endrift/status/635653808421388288
https://github.com/mgba-emu/mgba/blob/port/3ds/src/platform/3ds/main.c#L125-L199
because sf2d's tiling function doesn't actually seem tow ork
*to work
also this probably plays nicer with caches, which is very important there
yuriks
you should use the hardware display transfer
(GX_SetDisplayTransfer), flags are documented here: http://3dbrew.org/wiki/GPU/External_Registers
endrift
well yes but I'm not sure how to set up GX
Subv
you don't have to set up anything
just gpuInit somewhere and then GX_SetDisplayTransfer
yuriks
endrift: just call GX_SetDisplayTransfer, then gspWaitForPPF to wait for it to finish
Subv
gspInit*
yuriks
Subv: he'll already be calling it somewhere
endrift
(Action) glares at yuriks
yuriks
since no doubt sf2d is doing transfers to display the fb
endrift: ugh, sorry
she*
endrift
thanks
yuriks
._.
cache flushing with GSPGPU_FlushDataCache might be required somewhere in there depending on where your buffer came from
(and if you have anything else to do in the meantime you can do that before calling gspWaitForPPF so be a bit async)
endrift
well
GX_SetDisplayTransfer works in citr
a
yuriks
the citra implementation has a few bugs, but afaik they're all "things that should work but don't" instead of the opposite, so you should be ok... hopefully...
endrift
nah it's crashing on hardware
or freezing or something
yuriks
geh
what params/flags you using?
endrift
0x000002203
GX_SetDisplayTransfer(0, renderer.outputBuffer, GX_BUFFER_DIM(256, 256), tex->data, GX_BUFFER_DIM(256, 256), 0x000002203);
where tex is sf2d_texture* tex = sf2d_create_texture(256, 256, TEXFMT_RGB565, SF2D_PLACE_VRAM);
yuriks
hmmm
do you need the v-flip flag?
also, try putting the texture in FCRAM instead
endrift
I don't think sf2d has an option for that
no I don't need the vflip flag, but I think it's actually randomly crashing earlier
god, none of this makes sense
yuriks
the v-flip flag needed some mucking around with the dimensions iirc, so I'd advise against
and yeah, debugging gpu crap sucks -_-
endrift
god it's crashing so early
I thought I was past this
I KNOW that code works
there HAS to be a bug with the relocator
it's honest to god crashing before I even touch anything remotely interesting
where it didn't used to crash at all
what the fu*k is wrong with this platform
yuriks
fincs had mentioned some bugs in 3dsxtool, but they were about it refusing to work with valid elfs
might be worth a try updating it though? https://github.com/devkitPro/3dstools
dunno
don't get too angry :|
endrift
even launching it normally through hbl doesn't work
this nondeterminism and just...not making any sense
is really getting to me
and has wasted like 20 of my hours
yuriks
hm, try rebooting the console?
er, I guess you're already doing that
endrift
well I have to reboot it every 10 seconds already
I miss having CN just exit
now I have to hard power off everything
yuriks
I used to get the hardware into weird states that would persist until I rebooted when testing
endrift
I'm honest to god getting things that used to work...not working anymore at all
my minimal crash case (which probably wasn't even minimal) was like
setup
and teardown
and it'd crash
it did barely ANYTHING
yuriks
hmm
which exploit are you running on?
endrift
Ironhax
yuriks
want me to test on CN/Ninjhax 1.x, to see if it's anything related to that?
endrift
I can just get my CN cart
yuriks
oh
endrift
or just...my whole 9.2/Ninjhax 1.x setup
yuriks
that has been, by far, the most well battle-tested HB setup so far, so I'd dev on it for sanity...
endrift
oh I'm not sure I have ninjhax on here anymore
nope
it reformatted my card
er...apparently it's partially set up since it crashes
yuriks
probably still in the save, but not boot.3dsx
but no*
endrift
I made sure to put the boot.3dsx back
like I did that just now
it's clearly missing a payload somewhere
is it still possible to get ninjhax 1.x?
yuriks
oh, make sure to wait for a bit on the home menu before launching CN
yeah, it's still online: http://smealum.net/ninjhax/
(bit slow to load tho)
endrift
gonna try to reinstall it
yuriks
if you launch CN too quickly after the system boots the exploit will fail
smea
i can look at what's wrong if you send me a binary endrift but not before the end of the week
endrift
the page isn't really loading
smea: I can send you a binary in a few days I guess
smea
and yes the server is horrible it can take up to 5 minutes to load
i wish i was kidding
endrift
oh god
« prev 1 2 3 next »