5 ms·
I'm sorry, but believing you did in the highschool what Carmack managed to achieve on the PC in his early games is delusional. What Carmack achieved (by using
by acqq 13y ago
I'm sorry, but believing you did in the highschool what Carmack managed to achieve on the PC in his early games is delusional.
What Carmack achieved (by using the hardware features of the graphic cards of that day) is properly described in the link you give: smooth side scrolling on the PC. The kind of scrolling seen on the consoles of that day, which had a hardware support, or in the famous http://en.wikipedia.org/wiki/Super_Mario_Bros http://en.wikipedia.org/wiki/Super_Mario_Bros (a copy of which is the unreleased "Dangerous Dave in Copyright Infringement" made by Carmack). That has nothing to do with drawing only the changed characters with simple print at the given screen coordinates, what you did.
To achieve that, it used exactly hardware feature of changing the origin of the area in memory that is going to be picked up by the graphic chip to be presented on the screen. That changing was made in one pixel increments. Without it, no smooth scrolling. Second, he redraw the tiles, he didn't print the characters.
So no, that is absolutely not "pretty much what Carmack did in his old games." What you did at the end was done by absolutely every game at these times (using the commands of cursor movements to position the characters then printing them, in Turbo Pascal using gotoXY from the console library), what you started with (reprinting the whole screen just because) was simply as "pessimized" approach as it can be made at all. You didn't even optimize anything, you did what everybody did, you just started with the "pessimization." I'm old enough to remember. There is also at least somebody here who can provide a link to any computer magazine which printed such games in a few lines of code (at that time sources were made small enough to be printed in the magazines).
For the reference, at least the terminals in 1973 already had "Direct Cursor Addressing" -- the technology behind the gotoxy you used:
http://vt100.net/docs/vt05-rm/chapter3.html#S3.8 http://vt100.net/docs/vt05-rm/chapter3.html#S3.8
(It was already standardized anyway!) That terminal had 1440 characters, all directly addressable, and the maximum communication speed was 2400 bps which gives 300 characters per second or almost 5 seconds to push the whole screen to it. If you moved for example 10 characters, each with a 5 byte sequence, you needed only 50 bytes, so you can change their position 6 times per second. Everybody at that time knew that stuff. It was slow enough to see.
- Morgawr 13y agoI'm not sure where all the bitterness comes from but obviously I'm not comparing an amateurish attempt at optimizing a terminal-based snake game written in Pascal to the genius of Carmack, those are two entirely different things. And yes, I did that while I was in highschool, which is still years after Carmack did his deed. It was around uh... 2005? I thought I'd just share an interesting "hack" I did when I was a teenager which, to me, felt like a real genius trick to smooth gameplay. Back then my code was literally a lot of messy spaghetti goto hell, so you can understand how much of a novice I was. I recommend re-reading what I said, I never claimed I "pretty much" did what Carmack did, just that the idea behind incremental upgrades was "pretty much" similar to Carmack's genius. No more, no less.
- acqq 13y agoYour words "this approach is pretty much what Carmack did in his old games." Let me rephrase in less words, it is absolutely not pretty much what Carmack did. You just "rediscovered" cursor positioning feature introduced eons ago on the character-based terminals. Carmack did something else and with the bit-mapped screens using the specifics of the graphics adapters of that time. The tracking you try to refer to he did on the scrollable pixel addresses, you just did simple character prints for $deity sake! For the explanation of my opinion, see my previous post.
- Morgawr 13y agoFrom wikipedia[1]: "The technique is named for its other aspect, the tracking of moved graphical elements in order to minimize the amount of redrawing required in every frame." That's all I did, really. Not pretending I did anything more complex than that, I didn't even have access to a framebuffer or anything... Let's say the "principle" was the same, the delivery far from it. [1]https://en.wikipedia.org/wiki/Adaptive_tile_refresh https://en.wikipedia.org/wiki/Adaptive_tile_refresh
- acqq 13y agoSo according to your logic, as you've read in your school book and then wrote in your notebook a^2 + b^2 = c^2 that is "the same principle" what Einstein did with discovering E = m c ^2 since it has ^2 and the letters. Impressive. Your school book is the equivalent to the Turbo Pascal on-line help (or TP book if you used TP 3). The similarity of the formulas is the similarity of your implementation and Carmack's "being first." Having your post the top of HN discussion of one real hack makes me deeply sad as it obviously reflects there are some readers who support your view of "the same principle." Or just don't understand, in my view.
- jonesetc 13y agoYou seriously should to leave the computer, come back tomorrow, and then reread these posts. You are trying to stomp on someone's fond memory of a simple problem that they solved in a way that was novel to them. They clearly don't think that they are deserving of a Turing award, they were just young and felt some pride.
- mattdonnelly 13y agoChrist, you sound like such an insufferable prick
- acqq 13y agoIs there anything that I wrote that you can show it is not true? I think I've given very specific arguments.
- jonesetc 13y ago""" Walter: Am I wrong? The Dude: No you're not wrong. Walter: Am I wrong? The Dude: You're not wrong Walter. You're just an asshole. """
- serf 13y agoyeah, except he didn't pull a gun on someone, he pointed out that the example was overly flattering for the author. (which it was)
- acqq 13y agoHonestly, do you understand the technical aspects discussed here? Can you contribute on that level to the discussion?
- jacalata 13y agoNobody said you were technically wrong. They said you are being an asshole. Do you understand the interpersonal dynamics here? Can you comment on that level?
- acqq 13y agoI'm really sad I don't have your e-mail or the possibility to send you personal messages to demonstrate you how hurtful it is when you are being named the names. But I will not fail to your level to do it here in public. And I still don't see that you understood at all the topic which I discussed. Stay classy my friend, I won't answer you here anything more no matter what you write. The same goes to the other name namers.
- mcgwiz 13y agoOf course it's not exactly the same. But the approach was similar. They each believed that more could be done to bring their creations closer to perfection if they understood the underlying technologies better. Commenter took that to one level, and Carmack took that to the extreme. But both relied on tech abstractions that effectively had a multiple levels of proficiency.