Homebrew W.I.P. Nestopia port!

D

Deleted User

Guest
Author here. For the most part its working, but in order to get it to run faster, I'm working on hardware-accelerated rendering. Unfortunately, I haven't been able to get that to work on anything but citra so far, so for now it just freezes when you load a game.
 

Idaho

Well-Known Member
Member
Joined
Oct 3, 2013
Messages
880
Trophies
1
Age
29
XP
1,395
Country
France
Well keep up dude, I'm excited to see a playable release, the 3DS homebrew scene needs functional emulators and more good devs :D
 
  • Like
Reactions: Margen67
D

Deleted User

Guest
I'll keep trying, but I wouldn't get my hopes up just yet. Haven't been having much luck with getting GPU rendering to work on an actual 3DS.
 
  • Like
Reactions: Margen67

loco365

Well-Known Member
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
I'm really looking forward to seeing this. Nestopia was a really nice emulator to use, although VirtuaNES has the best NSF playback GUI ;D
 

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,434
Country
United States
I'll keep trying, but I wouldn't get my hopes up just yet. Haven't been having much luck with getting GPU rendering to work on an actual 3DS.




If you take a look at the source code for BlargSNES, you can get an idea of how to do it. What that does is that it goes through each scanline, identifies differences from the previous scanline (like modes, background position, etc), stores them into sections, and then after the last scanline, goes through each section one at a time, grabbing the tiles that make up each section, converting them to direct-color textures that get stored into a texture cache, and mapping those onto 2 polygons (that form a rectangle) that are added to an array list. Sounds like a lot, but considering you're working with the NES and not the SNES, many of the steps are simplified.
 

jocopoco

Well-Known Member
Newcomer
Joined
Feb 13, 2014
Messages
90
Trophies
0
Age
44
XP
106
Country
k, thanks but I have problems with ctrcommon, which ctrulib verrsion are u using? Anyway I have also problems with my emu, is your hb requiring external files on sd?
 
D

Deleted User

Guest
If you take a look at the source code for BlargSNES, you can get an idea of how to do it. What that does is that it goes through each scanline, identifies differences from the previous scanline (like modes, background position, etc), stores them into sections, and then after the last scanline, goes through each section one at a time, grabbing the tiles that make up each section, converting them to direct-color textures that get stored into a texture cache, and mapping those onto 2 polygons (that form a rectangle) that are added to an array list. Sounds like a lot, but considering you're working with the NES and not the SNES, many of the steps are simplified.


One of my goals is to not touch the actual NES emulator code, allowing the libretro frontend code to be reused on other emulator cores. Of course, if that proves too slow, I can always delve into the NES rendering code and make some changes.

I actually have everything rendering fine on citra. I seem to be making an error somewhere in my use of GPU code, however, as it freezes on an actual 3DS.

Basically, my issue isn't with how I want to render it, but that I can't figure out what I'm doing wrong in the resulting code that makes it freeze.
 
  • Like
Reactions: SLiV3R

Idaho

Well-Known Member
Member
Joined
Oct 3, 2013
Messages
880
Trophies
1
Age
29
XP
1,395
Country
France
One of my goals is to not touch the actual NES emulator code, allowing the libretro frontend code to be reused on other emulator cores. Of course, if that proves too slow, I can always delve into the NES rendering code and make some changes.

I actually have everything rendering fine on citra. I seem to be making an error somewhere in my use of GPU code, however, as it freezes on an actual 3DS.

Basically, my issue isn't with how I want to render it, but that I can't figure out what I'm doing wrong in the resulting code that makes it freeze.

You should ask the big guys on #3dsdev then, if they don't have an answer they might at least help you finding one...
 

davhuit

Well-Known Member
Member
Joined
Nov 23, 2005
Messages
994
Trophies
0
XP
550
Country
France
Nice, good luck!

As someone said, it's too bad to see the lack of working 3DS emulators homebrew when most of them could now work without any downscaling at all and fullspeed/with sound

(Still hoping someone will try to emulate the Genesis, one day).

And nice choice about Nestopia, as it's a cycle-accurate emulator.
 
  • Like
Reactions: Margen67

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    ReZ and Xdqwerty, please stop looking at me.
  • BigOnYa @ BigOnYa:
    Offer to clean house, wash windows, walk dogs, anything. You gotta have drive in life to get anything. Nothing is just given to you, atleast when you get older.
  • ZeroT21 @ ZeroT21:
    it's gud pocket money
  • BigOnYa @ BigOnYa:
    I remember when I was 14, I lived by a Coffee delivery service, and I asked the owner if I could work, and he had me wash the trucks on weekends to make money.
  • ZeroT21 @ ZeroT21:
    i did carpet cleaning jobs, it was weird but doable
    +1
  • ZeroT21 @ ZeroT21:
    especially with all the tools available nowadays
  • ZeroT21 @ ZeroT21:
    back then all i had were brushes, cleaning agents and lots of elbow grease to work with
  • BigOnYa @ BigOnYa:
    Most kids don't want to work nowdays, they want everything handed to them. And to think you're poor just cause you don't own a Switch is ridiculous.
  • K3Nv2 @ K3Nv2:
    @BigOnYa, Give me money
    +2
  • ZeroT21 @ ZeroT21:
    some would say, being poor and healthy is fine, rather than being rich, sick and dying
    +1
  • ZeroT21 @ ZeroT21:
    need food? just grow some potatoes or whatever veggie. But society just messes shit up and make us work for paper to buy food
  • The Real Jdbye @ The Real Jdbye:
    being poor and healthy is the worst case scenario because you have the longest amount of time to "enjoy" being poor
  • wolffangalchemist @ wolffangalchemist:
    Yeah back in my late teens I used to mow about 10 lawns every two weeks for $35 a yard. It was stupid big yards I knew where paying a lot more than that to lawn care companies in a some what up tier gated community a few blocks from the area I lived. Was great getting $700 a month with no bills at the time and good excercise too, now I have bills so I never have any money to buy things.
  • K3Nv2 @ K3Nv2:
    Yet kids are always like I WANNA BE ADULT
    +1
  • BigOnYa @ BigOnYa:
    I wish I could go back to 14, living at home free and little to no worries.
  • K3Nv2 @ K3Nv2:
    Kids still have bs getting manipulated easily, believing dumb youtube content etc
    +1
  • BigOnYa @ BigOnYa:
    If I could go back, I'd be more of a horn ball than I am now. I'd be chasing all the girls I never had the balls to back then
  • K3Nv2 @ K3Nv2:
    I'd drop out of school sooner
  • wolffangalchemist @ wolffangalchemist:
    Yeah I would probably drop out sooner too, the country ass high school I went to wouldn't know intelligence if it hit the up side the head.
  • BigOnYa @ BigOnYa:
    I used to play those goonies games on NES, used to piss me off
  • wolffangalchemist @ wolffangalchemist:
    I think the most frustrating nes game as a kid to me was contra.
  • BakerMan @ BakerMan:
    well, i got school tomorrow, night yall
    BakerMan @ BakerMan: well, i got school tomorrow, night yall