WHEN I WAS TALKING TO YOU ABOUT THIS YOU DIDN’T MENTION YOU DID IT IN ASSEMBLY!!! Wow this is just incredibly impressive and I’m completely blown away by the effort you put into this and the future possibilities. Congrats fractal and can’t wait to see you continue pushing this game further!
I suspect decompilation is a bigger issue here than compilation. Decompilers do exist for the 6502, but it takes a lot of work to turn a decompiled ROM into something that can be humanly understood. (Of course, it also takes a while just to understand a disassembled ROM, but maybe less time. And I think partially-commented versions of the NES Tetris code already exist.) If you work with the original code, you can copy and paste large sections of it and just make some specific changes. I do wonder why NES and SNES devs practically never used a higher-level language, though. I guess the C compliers for 6502 available at the time must have been really bad. Also, there was no compiler for the PPU, so a lot of memory addresses and registers had to be manually set and checked anyway, so maybe there wasn't such a big advantage.
Hope you enjoyed the video! Here are some notes: - In case I conveyed this poorly, this hack is *not* meant to replace any existing hacks, like double killscreen or (more recently) Hydrant's smooth gravity mod. They are both unique ways of creating new and challenging gameplay. All I want to do is introduce yet another way of doing exactly that, just one that uses a trick most people wouldn't think of. - Emulators don't exactly work nicely with this, since they're typically coded to only poll at a rate of 60fps or whatever (boo). You can still enjoy all of the different falling speeds, but you just can't get those 45hz rolls. - More to come! There's no way I escaped video or factual mistakes, so i'll do my best to update this when I learn of any.
Can you try your own hack of Tetris at Level 29 with 1/2 speed? Let's see what happens with the bugged colors, it could be the same, or it could be even more bugged colors!
Fractal, this is SO COOL. I'm blown away by the fact that you did all that optimizing in assembly, that's immensely impressive. It's so awesome that this exists :)
wtf wtf wtf you are so so SO insane everything about this is amazing from the video editing to the gameplay to of course the actual romhack itself classic tetris is so lucky to have you
Fractal you are a legend and this is a legendary contribution to the game. I didn't even think twice when you talked about optimizing all the game code during crash storytime, but this is very obviously the project it was part of! I'm blown away, well done.
My mans learned Assembly to optimize the actual NES Tetris code to make new breakthroughs in compatibility and it was all just because he really wants to be able to casually play forever into dks and upset vandy
i just watched all your matches in the championship and instantly fell in love you have mad skills bro and your joy for this game is unmatched! and to find out you ALSO have a youtube channel with a BUNCH of good videos?? made my night sir. keep doing great things youre awesome frac
fractal - congratulations on an *incredible* semifinal. you earned this final spot & i wish you the best of luck in the finals. you’re one step away from world champion - you can do this.
This is cool. I'm currently working on a tetris game running on my own hardware (microcontroller, and addressable led "screen"). I'm trying to clone NES Tetris very closely, with the exception that I'm not tied to 60.1Hz, so while my piece drops are timed identically, the controls, and even piece moves, can happen at a much higher rate. I haven't even tried rolling, since I'm a mediocre level 7 "hypotapper", but in theory it should be possible to roll at up to the limit set by the debouncing I do on the swtiches. I can also have different speed curves, so I'll have options for nes-style frame limited speeds, same speeds with a smooth progression (since I'm not locked to 3/2/1 frames per drop), and an overall linear speed increase without large steps.
Theoretically, wouldn't you want there to be code to scale the gravity-per-frame along with the increased "frame rate"? That way, the speed at level 19, for example, could be *roughly equal* to the speed at level 19 in the original version of the game, but because there's less granularity in the framerate, you can end up with a situation where the gravity speed *smoothly* transitions from Level 16 speed to 19, from 19 to 29, etc. rather than having levels 16-18 be the same, and levels 19-28 be the same... and of course this would have the consequence that higher levels would eventually get down to one tile drop per frame, even at the highest framerates. I'm don't know enough about NES Tetris to know if the piece fall speeds are simply contained in a table, or if they're actually calculated based on a formula though.
in the original game it is in a table, I have no idea about this though. though it would be hilarious if it was calculated by a formula and had no cap so level 255 WOULD indeed be a killscreen, though you'd probably be oofed long before that
another cool thing that makes this hack even more impressive is, that the MMC1, which Tetris normally uses doesn‘t have a scanline counter. The Next common mapper to support this is the MMC3, which means he had to Reprogram the Entire Core of the Game to a completely Different Mapper.
it would be really cool to see the top TGM players try this out...... and thanks for bringing back memories of CTEC 2019 with a good old Janinsanity clip....
I would like a video on things you did to optimize the code. I know it would probably be hard to cover everything, but some basics would be pretty nice. Kinda like how Kaze talks about his optimizations for SM64.
NES Shirase unlocked! On a different front, I'm looking at GameBoy ASM right now, with an eye towards making a TGM style game there. Would definitely be interested in more details on the technical side about how you programmed this ROM hack, particularly the speed optimizations.
This video was suggested to me after i randomly watched a tetris world cup out of boredom. And I can safely say I didn't understand a single thing about this video lol
this could add a new level to strategy in classic Tetris games, maybe some players choose to play faster for higher score vs a player playing a slower frame rate for a safer game
Nicely done! Just one question though, why did did you optimize the code when you probably could’ve gotten by with just playing the music once a frame. Probably even sounds because the human ear doesn’t register anything less than 3 to 4 frames out of sync anyways. But from one game hacker to another I your optimization was very cool.
This is amazing. The skills you show here are more than enough to land you a job as a (top) software developer. Amazing job reverse engineering 35 year old assembly. I'm a CTO and I would be proud of such an accomplishment.
Just curious... Have you updated your speedhack rom hack to include the new level 39 super kill screen? And of course.... HUGE CONGRATULATIONS ON BECOMING THE NEW WORLD CHAMPION!!!!
Your rom works so much faster, i am using on my smartphone, really amazing, do you know where i could download the TetrisJonas Rom? And the Rom used for the World Championship is downloadble ? Thank you Fractal, you are a prodigy
Technically I think it's possible, but how well it would play would depend on the TV. Many PAL TVs supported 60Hz refresh rates but not all of them. You could have 60Hz gameplay with a 50Hz display but it might cause gameplay issues.
Do you even actually need the mapper? The CPU of the NES runs at a certain speed, so you could keep track of how many cycles each instruction takes, and poll at the appropriate time. Don't get me wrong: I know it would be a lot harder, since you'd need to get the timing very accurate, probably making sure your polling happened in H-blank to avoid any graphics errors. It's much easier to let the mapper do it for you. So I'm not saying you *should* do it that way. Just that, technically, you *could*. Or is there some reason I'm wrong?
this is kind of impossible because (to my understanding) the nes has a graphics interrupt that is only called by the hardware itself 60 times a second to update the screen. you can't really just call your own vBlank
@@vintologi But if you're going to use emulation, you might as well just run the entire emulation at the speed you want, with the original ROM. You want 360hz? Run the emulator at 600% speed.
So everything's faster, which kind of means nothing is...Doesn't 🥚zactly seem like the most useful thing, but ya gotta start somewhere, I guess; and by now it's probably bin improved quite a bit so that isn't the case anymore (well, one would hope; never can tell when these things are gonna decide they don't wanna cooperate anymore 🤷🏿♀)
WHEN I WAS TALKING TO YOU ABOUT THIS YOU DIDN’T MENTION YOU DID IT IN ASSEMBLY!!! Wow this is just incredibly impressive and I’m completely blown away by the effort you put into this and the future possibilities. Congrats fractal and can’t wait to see you continue pushing this game further!
On NES, assembly is the only practical way, 6502 assembly was made to be easily developed for
in assembly?? hoooly suit. fractal is such a legend.
Honestly the first Nintendo console to use C was the N64
@@Kylemsguy snes had rarely used compilers
I suspect decompilation is a bigger issue here than compilation. Decompilers do exist for the 6502, but it takes a lot of work to turn a decompiled ROM into something that can be humanly understood. (Of course, it also takes a while just to understand a disassembled ROM, but maybe less time. And I think partially-commented versions of the NES Tetris code already exist.) If you work with the original code, you can copy and paste large sections of it and just make some specific changes.
I do wonder why NES and SNES devs practically never used a higher-level language, though. I guess the C compliers for 6502 available at the time must have been really bad. Also, there was no compiler for the PPU, so a lot of memory addresses and registers had to be manually set and checked anyway, so maybe there wasn't such a big advantage.
Hope you enjoyed the video! Here are some notes:
- In case I conveyed this poorly, this hack is *not* meant to replace any existing hacks, like double killscreen or (more recently) Hydrant's smooth gravity mod. They are both unique ways of creating new and challenging gameplay. All I want to do is introduce yet another way of doing exactly that, just one that uses a trick most people wouldn't think of.
- Emulators don't exactly work nicely with this, since they're typically coded to only poll at a rate of 60fps or whatever (boo). You can still enjoy all of the different falling speeds, but you just can't get those 45hz rolls.
- More to come! There's no way I escaped video or factual mistakes, so i'll do my best to update this when I learn of any.
for the pal mod, is it the 12.5/15 hz das or normal 10 hz?
Can you try your own hack of Tetris at Level 29 with 1/2 speed? Let's see what happens with the bugged colors, it could be the same, or it could be even more bugged colors!
How do I download it onto my nes and how can I tell if my game is pal or NTSC
@@Thepotatoz. get an everdrive like most people including me
As a programmer I'm amazed you managed to do such a good ROM hack in assembly. Bravo Fractal!
W music 0:32
he's one of the smartest stem students in the USA so it's expected.
the cutoff...
Fractal, this is SO COOL. I'm blown away by the fact that you did all that optimizing in assembly, that's immensely impressive. It's so awesome that this exists :)
wtf wtf wtf you are so so SO insane everything about this is amazing from the video editing to the gameplay to of course the actual romhack itself classic tetris is so lucky to have you
Fractal you are a legend and this is a legendary contribution to the game. I didn't even think twice when you talked about optimizing all the game code during crash storytime, but this is very obviously the project it was part of! I'm blown away, well done.
Okay, this is awesome! Well done Fractal!
My mans learned Assembly to optimize the actual NES Tetris code to make new breakthroughs in compatibility and it was all just because he really wants to be able to casually play forever into dks and upset vandy
i just watched all your matches in the championship and instantly fell in love you have mad skills bro and your joy for this game is unmatched! and to find out you ALSO have a youtube channel with a BUNCH of good videos?? made my night sir. keep doing great things youre awesome frac
This is amazing Fractal!! And a super well made explanation to go along with it
Every time I think the ceiling has been hit.... wow! Great video Fractal!
Outstanding work as always man, pushing the boundaries as always!!!
holy fractal this video is amazing and the speed hack is beautiful
omg! this is the best thing that happened to tetris in a long time, thank you!
This is of unreasonable quality. I learned so much being around you, and I hope to see you in Portland!
This is s huge leap forward for the scene. Thanks for doing all this work Fractal
Just watched your ctwc finals match. Amazing! Great work.
I think the title screen is dope dude! So proud of you man. What an accomplishment and even more importantly a testament to your tenacity! Well done!
fractal - congratulations on an *incredible* semifinal. you earned this final spot & i wish you the best of luck in the finals. you’re one step away from world champion - you can do this.
The passion and dedication of this game has turned you into an absolute super coder!
Very well edited!
This must have taken a lot of effort overall and it’s amazing to see the journey to achieve the results
Love the time trax music used in Part 2!!!! amazing work
Congrats on becoming the 2023 CTWC Champion
This is cool. I'm currently working on a tetris game running on my own hardware (microcontroller, and addressable led "screen"). I'm trying to clone NES Tetris very closely, with the exception that I'm not tied to 60.1Hz, so while my piece drops are timed identically, the controls, and even piece moves, can happen at a much higher rate.
I haven't even tried rolling, since I'm a mediocre level 7 "hypotapper", but in theory it should be possible to roll at up to the limit set by the debouncing I do on the swtiches. I can also have different speed curves, so I'll have options for nes-style frame limited speeds, same speeds with a smooth progression (since I'm not locked to 3/2/1 frames per drop), and an overall linear speed increase without large steps.
that sounds so cool!
Theoretically, wouldn't you want there to be code to scale the gravity-per-frame along with the increased "frame rate"? That way, the speed at level 19, for example, could be *roughly equal* to the speed at level 19 in the original version of the game, but because there's less granularity in the framerate, you can end up with a situation where the gravity speed *smoothly* transitions from Level 16 speed to 19, from 19 to 29, etc. rather than having levels 16-18 be the same, and levels 19-28 be the same... and of course this would have the consequence that higher levels would eventually get down to one tile drop per frame, even at the highest framerates.
I'm don't know enough about NES Tetris to know if the piece fall speeds are simply contained in a table, or if they're actually calculated based on a formula though.
in the original game it is in a table, I have no idea about this though.
though it would be hilarious if it was calculated by a formula and had no cap so level 255 WOULD indeed be a killscreen, though you'd probably be oofed long before that
Fractal, I want to see the title of the song at the start.
Without the jokes, wow. This is amazing!
another cool thing that makes this hack even more impressive is, that the MMC1, which Tetris normally uses doesn‘t have a scanline counter. The Next common mapper to support this is the MMC3, which means he had to Reprogram the Entire Core of the Game to a completely Different Mapper.
This is absolutely amazing. Major props to you.
Crazy well made video!
Mind blown, this kid is exceptional, at his age I would never think on changing a game like that, nice!
Getting that square piece over was nuts…7:22
so proud of you today, fractal! we’ll miss you until you get back from homework ❤️
Very cool. Many congrats!
it would be really cool to see the top TGM players try this out......
and thanks for bringing back memories of CTEC 2019 with a good old Janinsanity clip....
Omg writing something like this in assembly is insane, very nice!
What a cool project!
this is the best video ive ever watched
I would like a video on things you did to optimize the code. I know it would probably be hard to cover everything, but some basics would be pretty nice. Kinda like how Kaze talks about his optimizations for SM64.
Thanks for sharing!
EVERYTHING in this video is legendary
NES Shirase unlocked!
On a different front, I'm looking at GameBoy ASM right now, with an eye towards making a TGM style game there. Would definitely be interested in more details on the technical side about how you programmed this ROM hack, particularly the speed optimizations.
FRACTAL: 2023 CTWC Champion!!!
5:50 Oh cool!
That's funny lol. Just improving the code
sheesh you went all out on this video. pog.
also it was very obvious which video was 30 hz lol. and yes it does matter because tucks/spins exist
rolling is so much better, but it is a lot faster.
It would be interesting to see this hack used in comp. It would enable some double-killscreen battles to happen.
This video was suggested to me after i randomly watched a tetris world cup out of boredom. And I can safely say I didn't understand a single thing about this video lol
fractal you absolute legend you
this could add a new level to strategy in classic Tetris games, maybe some players choose to play faster for higher score vs a player playing a slower frame rate for a safer game
Nicely done! Just one question though, why did did you optimize the code when you probably could’ve gotten by with just playing the music once a frame. Probably even sounds because the human ear doesn’t register anything less than 3 to 4 frames out of sync anyways. But from one game hacker to another I your optimization was very cool.
This is awesome
Simply mindblowing.
This is amazing. The skills you show here are more than enough to land you a job as a (top) software developer.
Amazing job reverse engineering 35 year old assembly. I'm a CTO and I would be proud of such an accomplishment.
This video is amazing holy shit. This deserves like 12M views
2:27 Wait is that how Speed Uncap works?
SCUTI, YOU’RE UP!
Pure genius
The pal rom on 60hz console might be wonderful news for the pal community :O
Just curious... Have you updated your speedhack rom hack to include the new level 39 super kill screen?
And of course.... HUGE CONGRATULATIONS ON BECOMING THE NEW WORLD CHAMPION!!!!
This is so sick
lets go i can pal now
Your rom works so much faster, i am using on my smartphone, really amazing, do you know where i could download the TetrisJonas Rom? And the Rom used for the World Championship is downloadble
? Thank you Fractal, you are a prodigy
Well soon relativistic speeds such as speed of light will be reached and time will slow to a crawl
Killing it
Mind blowing that you wanted the game to be faster!
how can you play at speeds over level 29
Hi, tell me, what song did you sing at the beginning of the second round against Eric at the championship final?
Just when I thought me writing c++ is geeky enough...
Fractal made the right choice to go to MIT
If blocks fall 2 steps per frame, are some tucks impossible?
Could you make a ntsc mode for PAL version?
Technically I think it's possible, but how well it would play would depend on the TV. Many PAL TVs supported 60Hz refresh rates but not all of them. You could have 60Hz gameplay with a 50Hz display but it might cause gameplay issues.
have you ever played guideline tetris?
This is gonna cause crashes earlier i think, since there's more to do by default
what brand of control do you use to play the rom and do rolling?
Aquatic Ambience 😌
based creative mode music
Do you even actually need the mapper? The CPU of the NES runs at a certain speed, so you could keep track of how many cycles each instruction takes, and poll at the appropriate time.
Don't get me wrong: I know it would be a lot harder, since you'd need to get the timing very accurate, probably making sure your polling happened in H-blank to avoid any graphics errors. It's much easier to let the mapper do it for you. So I'm not saying you *should* do it that way. Just that, technically, you *could*.
Or is there some reason I'm wrong?
Will Europeans also be able to play NTSC on PAL consoles eventually? Even if not, it's still a great achievement but I'm curious
a modded version of pal could play at ntsc speeds if you're curious
You need a more ergo friendly chair.
it would be better to also change the output framerate.
There are pc screens even supporting 360hz now.
this is kind of impossible because (to my understanding) the nes has a graphics interrupt that is only called by the hardware itself 60 times a second to update the screen.
you can't really just call your own vBlank
@@gairisiuil Yea it's probably not easy to do (if possible at all) on original hardware but it's fairly easy to do with emulation.
@@vintologi But if you're going to use emulation, you might as well just run the entire emulation at the speed you want, with the original ROM. You want 360hz? Run the emulator at 600% speed.
I can't get this to work :,(
man is a nerd and a tetris master
This may be a stupid question but if the original game is 60 fps and polls once per frame why is rolling limited to 30 hz
There has to be one frame of nothing, otherwise it'll treat it as you holding the button.
7:12 20G?
how would 20g ever be possible in any lifetime
@@gairisiuil Doesn't have to be, I just want it to exist in some capacity on the NES.
fast tetris = fun
Emulation? pls
Woah damn bro
WHERE IS CLASSIC TETRIS NEWS
"פלייטריפטטריס"
Oh my god . . .
Swagg
When lvl 29 is too easy
cool
Assembly sucks. Props for this.
Since when fractal programs and speaks on top of playing Tetris? I thought he was dog archnemesis
Can you make das faster?
Does everyone say ness not N-E-S?
no its typically pronounced N-E-S
@@Austin_Playz27 ok, good
NES TETRIS ……. FASTER 😂😂😂😂😂
So everything's faster, which kind of means nothing is...Doesn't 🥚zactly seem like the most useful thing, but ya gotta start somewhere, I guess; and by now it's probably bin improved quite a bit so that isn't the case anymore (well, one would hope; never can tell when these things are gonna decide they don't wanna cooperate anymore 🤷🏿♀)