? Gameboy Emulator (Page 12) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Gameboy Emulator

1 2 3 4 5 6 7 8 9 10 11 12
  • #221 ✎ 373 hakke RNG Hidden Easter Eggs Third Year My account is over 3 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    also let's say your programming level isnt good
    Just because someone wrote bad code in the past doesn't mean they can' t improve, even if it is RGames. What makes you think you're so qualified to make these kinds of sweeping generalized judgements? Anyone with the willingness to work for a long time on something can make something decent. I doubt that this emulator is the most optimized it could possibly be, period, no questions asked. It might not run very close to real time, but with more optimizations, it can probably run quite a bit faster than it can currently.
    but now the question becomes: is "a bit faster" worthy of wasting a long time?
    Posted
  • #222 ✎ 1284 rando Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Second Year My account is over 2 years old Website Forum Leader Hidden Achievements
    also let's say your programming level isnt good
    Just because someone wrote bad code in the past doesn't mean they can' t improve, even if it is RGames. What makes you think you're so qualified to make these kinds of sweeping generalized judgements? Anyone with the willingness to work for a long time on something can make something decent. I doubt that this emulator is the most optimized it could possibly be, period, no questions asked. It might not run very close to real time, but with more optimizations, it can probably run quite a bit faster than it can currently.
    I agree, looking at myself. I went from making a horrible crappy hello neighbor clone into making a usable 3D engine over 2 years. That shows that putting time into learning and improving does help.
    Posted
  • #223 ✎ 296 h267 Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Minecraft Is Awesome! I love Minecraft! Express Yourself
    But still, I want to see if I can do anything to make it faster. Using BG tiles and Sprites, minimizing FOR Loops (if it uses a lot)
    0. Familiarization If you have not familiarized yourself with how the Game Boy works, I strongly recommend doing so if you're going to make any meaningful improvements. For your case specifically, you'll want to pay attention to which registers in memory correspond to drawing graphics. The PPU (pixel processing unit)'s I/O registers are hex $FF40 through $FF4B. There are a lot of resources that can help you find out what all of these registers do. I recommend the offical dev manual here: https://ia801906.us.archive.org/19/items/GameBoyProgManVer1.1/GameBoyProgManVer1.1.pdf 1. Sprite-Background Priority As far as I know, there is no way make anything (besides the console) display on top of the sprite layer in SmileBASIC. The sprites in the Game Boy can be draw behind parts of the background. How would you implement that without getting into computationally-expensive operations? 2. Sprite Limitations On the Game Boy, only 10 sprites can be drawn per line. The 11th will be cut off at that line. Not cut out entirely, just at the specific lines where there are 11 sprites in a row? How are you going to implement this sprite limit and have the sprites get cut off properly? 3. HDMA This is a big one. HDMA, among other things, allows for the background to be scrolled after every line it is drawn. This can be used to produce a wavy effect on the screen. SmileBASIC doesn't have anything that does this, so you would probably be stuck copying graphics a lot. And there's probably more than that.
    Posted Edited by h267
  • #224 ✎ 1284 rando Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Second Year My account is over 2 years old Website Forum Leader Hidden Achievements There actually is a way to move sprites behind the BG. Both SPOFS and BGOFS have a z argument. Posted
  • #225 ✎ 296 h267 Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Minecraft Is Awesome! I love Minecraft! Express Yourself
    There actually is a way to move sprites behind the BG. Both SPOFS and BGOFS have a z argument.
    Won't that move the entire background layer through? A specific pixel color need to be filtered and moved behind the others.
    Posted
  • #226 ✎ 55 SaladFingers The largest problem for using built-in graphics is that the gameboy can change its graphics registers mid-frame, so the the frame can be partly drawn when data is changed Posted
  • #227 ✎ 296 h267 Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Minecraft Is Awesome! I love Minecraft! Express Yourself
    The largest problem for using built-in graphics is that the gameboy can change its graphics registers mid-frame, so the the frame can be partly drawn when data is changed
    Yup. For example, a horizontal wavy effect in the background layer that I mentioned earlier can be achieved by changing the SCX register in a sinusoidal pattern on every line during H-Blank.
    Posted
1 2 3 4 5 6 7 8 9 10 11 12