News for hackers. Stuff that matters.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by pavon on Tuesday May 27, 2025 @05:46PM (#44110919)
The article didn't nail down an exact reason. Here is my guess. The quote from Andy Hertzfeld suggests the limiting factor was the memory bandwidth not the memory volume:

> The most important decision was admitting that the software would never fit into 64K of memory and going with a full 16-bit memory bus, requiring 16 RAM chips instead of 8. The extra memory bandwidth allowed him to double the display resolution, going to dimensions of 512 by 342 instead of 384 by 256

If you look at the specs for the machine, you see that during an active scan line, the video is using exactly half of the available memory bandwidth, with the CPU able to use the other half (during horizontal and vertical blanking periods the CPU can use the entire memory bandwidth)[1]. That dictated the scanline duration.

If the computer had any more scan lines, something would have had to give, as every nanosecond was already accounted for[2]. The refresh rate would have to be lower, or the blanking periods would have had to been shorter, or the memory bandwidth would have to be higher, or the memory bandwidth would have had to be divided unevenly between the CPU and video which was probably harder to implement. I don't know which of those things they would have been able to adjust and which were hard requirements of the hardware they could find, but I'm guessing that they couldn't do 384 scan lines given the memory bandwidth of the RAM chips, and the blanking times of the CRT they selected, if they wanted to hit 60Hz.

[1]https://archive.org/details/Guide_to_the_Macintosh_Family_Ha...

[2]https://archive.org/details/Guide_to_the_Macintosh_Family_Ha...

Re:Why the Original Macintosh Had a Screen Resolution of 512... by analog31 on Tuesday May 27, 2025 @06:39PM (#44111287)
A lot of those old machines had clock speeds and video pixel rates that meshed together. On some color machines the system clock was an integer multiple of the standard colorburst frequency.

The Timex Sinclair did all of its computation during the blanking interval which is why it was so dog slow.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by krige on Wednesday May 28, 2025 @01:56AM (#44113105)
The Commodore Amigas had their 68k clock speed differ based on region due to carrier frequency difference (more specifically, 2x freq for NTSC, 1.6x for PAL, which resulted in almost the same, but not quite, clock speed).

It's interesting how the differing vertical resolutions between these two (200p /400i vs 256p /512i) also had some secondary effects on software design, it was always easy to tell if a game was made in NTSC regions or with global releases in mind because the bottom 20% of the screen was black in PAL.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by ido on Wednesday May 28, 2025 @02:24AM (#44113195)
To save the curious a search: the Timex Sinclair is the American variant of the ZX Spectrum.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by rwmj on Wednesday May 28, 2025 @05:59AM (#44114367)
The ZX Spectrum had (primitive) video hardware. The GP commenter means the ZX80 and ZX81 which used the Z80 CPU to generate the display and so really were unable to both "think" and generate the display at the same time. On the ZX81 there were two modes, SLOW mode and FAST mode. In FAST mode the Z80 CPU prioritized computations over generating the display, so the display would go fuzzy grey while programs were running, then would reappear when the program ended or it was waiting for keyboard input.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by implements on Wednesday May 28, 2025 @06:39AM (#44114572)
There was an adventure game that showed “The Mists of Time” for 30 seconds during initial map generation - it was a very creative way to describe the analogue tv noise caused by missing video signal.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by ido on Wednesday May 28, 2025 @06:36AM (#44114558)
You're right! I was thinking of the Timex Sinclair 2068. It was preceded by the 1000 and 1500 (ZX80 & ZX81 respectively as you say).
Re:Why the Original Macintosh Had a Screen Resolution of 512... by implements on Wednesday May 28, 2025 @04:02AM (#44113722)
There’s an interesting blog post about how a far simpler machine generates its video signal, if people are curious about the signals involved:

http://blog.tynemouthsoftware.co.uk/2023/10/how-the-zx80-gen...

“The CPU then only produces a TV picture when BASIC is waiting for input (or paused). At other times it does not bother to produce a video picture, so the CPU can run the program at full speed.”

Re:Why the Original Macintosh Had a Screen Resolution of 512... by pragma_x on Tuesday May 27, 2025 @06:55PM (#44111385)
It's also interesting to look at other architectures at the time to get an idea of how fiendish a problem this is. At this time, Commodore, Nintendo, and some others, had dedicated silicon for video rendering. This frees the CPU from having to generate a video signal directly, using a fraction of those cycles to talk to the video subsystem instead. The major drawback with a video chip of some kind is of course cost (custom fabrication, part count), which clearly the Macintosh team was trying to keep as low as possible.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by MBCook on Tuesday May 27, 2025 @09:48PM (#44112137)
Plus those weren’t raw bitmaps but tile based to help keep memory and bandwidth costs down.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by s800 on Thursday May 29, 2025 @08:54PM (#44131785)
Not sure we're thinking the same way, but the C64 and Atari had bitmap modes, not just tile or character modes.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by jnaina on Tuesday May 27, 2025 @10:09PM (#44112193)
Both the key 8-bit contenders of yore, Atari 8-bit series and Commodore 64 custom graphics chips (Antic and Vic-II) “stole” cycles from the 6502 (or 6510 in the case of C64) did "cycle stealing", when it needed to access memory.

I remember writing a cpu intensive code on the Atari and using video blanking to speed up the code.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by nradov on Tuesday May 27, 2025 @11:01PM (#44112402)
And yet despite the lower parts count the Macintosh was more expensive than competing products from Commodore and Atari that had dedicated silicon for video rendering. I guess Apple must have had huge gross margins on hardware sales given how little was in the box.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by IAmBroom on Wednesday May 28, 2025 @08:59AM (#44115554)
Plus ça change...
Re:Why the Original Macintosh Had a Screen Resolution of 512... by stefan_ on Tuesday May 27, 2025 @06:46PM (#44111333)
Displays are still bandwidth killers today, we kept scaling them up with everything else. Today you might have a 4k 30bpp 144hz display and just keeping that fed takes 33Gbit/s purely for scanout, not even composing it.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by danudey on Tuesday May 27, 2025 @08:09PM (#44111709)
I have a 4k 60Hz monitor connected to my laptop over one USB-C cable for data and power, but because of bandwidth limitations my options are 4k30 and USB 3.x support or 4k60 and USB 2.0.

I love the monitor, it's sharp and clear and almost kind of HDR a lot of the time, but the fact that it has a bunch of USB 3.0 ports that only get USB 2.0 speeds because I don't want choppy 30Hz gaming is just... weird.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by wmf on Tuesday May 27, 2025 @09:07PM (#44111970)
Everything is amazing and nobody's happy.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by Jaygles on Tuesday May 27, 2025 @09:47PM (#44112130)
Identifying areas to improve is how we make progress
Re:Why the Original Macintosh Had a Screen Resolution of 512... by kragen on Wednesday May 28, 2025 @12:50AM (#44112845)
Being more judicious about who you wank in front of, for example. (Just in case the reference isn't obvious, I'm not talking about either wmf or Jaygles here.)
Re:Why the Original Macintosh Had a Screen Resolution of 512... by wkat4242 on Tuesday May 27, 2025 @10:51PM (#44112361)
Should have gone for thunderbolt :)
Re:Why the Original Macintosh Had a Screen Resolution of 512... by tveyben on Wednesday May 28, 2025 @01:37AM (#44113041)
Thats the exact reason i dichted my dock and connected the monitor directly to my labtop. 30 Hz is way too low, I need 60 (or maybe 50 would have been enough - I’m in the PAL part of the world ;-)
Re:Why the Original Macintosh Had a Screen Resolution of 512... by bobmcnamara on Tuesday May 27, 2025 @08:08PM (#44111705)
We see this in embedded systems all the time too.

It doesn't help if your crossbar memory interconnect only has static priorities.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by monkeyelite on Wednesday May 28, 2025 @12:26AM (#44112742)
4k jumped the gun. It’s just too many pixels and too many cycles. And unfortunately was introduced when pixel shaders starting doing more work.

Consequently almost nothing actually renders at 4k. It’s all upscaling - or even worse your display is wired to double up on inputs.

Once we can comfortably get 60 FPS, 1080p, 4x msaa, no upscaling, then let’s revisit this 4k idea.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by account42 on Wednesday May 28, 2025 @07:06AM (#44114704)
WTF are you talking about, 60 FPS for 4K isn't even that challenging for reasonably optimized applications. Just requires something better than a bargain bin GPU. And 120+ FPS is already the new standard for displays.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by monkeyelite on Wednesday May 28, 2025 @10:19AM (#44116303)
I’m telling you that even if those are the numbers on paper, the software and hardware are using tricks to achieve it which lower the overall quality.

So yes you get 4k pixels lit up on your display, but is it actually a better image?

And yes there may be high end hardware which can handle it, but the sw still made design choices for everyone else.

There are also image algorithms which are not as amenable to GPUs which are now impossible to compute effectively.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by justinrubek on Wednesday May 28, 2025 @02:26PM (#44119068)
Make it 120fps and I could agree.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by bzzzt on Thursday May 29, 2025 @08:42AM (#44125512)
I didn't have to be '4K', it just should be sharp - Apple was right in 2012 with the 'retina' concept. TV manufacturers doubled the resolution and those panels trickled down to PCs. Games and movies don't need that resolution, but it helps text readability tremendously. And as a bonus you can skip all that 'cleartype' nonsense and other readability hacks that often don't work right.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by monkeyelite on Thursday May 29, 2025 @01:06PM (#44128014)
I agree
Re:Why the Original Macintosh Had a Screen Resolution of 512... by hulitu on Wednesday May 28, 2025 @01:19AM (#44112962)
And marketing said, when LCDs were pushing CRT out of the market, that you don't need to send the whole image to change a pixel on an LCD, you can change only that pixel.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by p_l on Wednesday May 28, 2025 @04:48AM (#44113979)
except DVI is essentially VGA without Digital-to-Analog part, and original HDMI is DVI with encryption, some predefined "must have" timings, and extra data stuffed into empty spaces of blasting a signal designed for CRT.

I think partial refresh capability only came with some optional extensions to DisplayPort.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by account42 on Wednesday May 28, 2025 @07:08AM (#44114716)
DVI is just a connector - it can be either analog or digital or support both.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by p_l on Wednesday May 28, 2025 @06:16PM (#44121152)
DVI is an interface, with multiple variants of connectors defined - and the digital portion was essentially the analog portion (which was VGA signals) streamed in digital form
Re:Why the Original Macintosh Had a Screen Resolution of 512... by rasz on Wednesday May 28, 2025 @09:01AM (#44115569)
Im not even sure if partial refresh is a thing outside of e-Paper displays. The best we can do on DP is Variable Refresh going all the way down to Panel Self-Refresh.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by ajross on Tuesday May 27, 2025 @06:26PM (#44111201)
Exactly. Like the Apple ][, the original Mac framebuffer was set up with alternating accesses, relying on the framebuffer reads to manage DRAM refresh.

It looks like DRAM was set up on a 6-CPU-cycle period, as 512 bits (32 16-bit bus accesses) x 342 lines x 60 Hz x 6 cycles x 2 gives 7.87968 MHz, which is just slightly faster than the nominal 7.83 MHz, the remaining .6% presumably being spent during vblank.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by bobmcnamara on Tuesday May 27, 2025 @08:10PM (#44111711)
It's like dual porting but twin half duplex!
Re:Why the Original Macintosh Had a Screen Resolution of 512... by meatmanek on Tuesday May 27, 2025 @07:33PM (#44111549)
But why 342 and tune the clock speed down instead of keeping the clock speed at 8MHz and having floor(8e6/2/6/60/32) = 347 lines?

I suspect kmill is right: https://news.ycombinator.com/item?id=44110611 -- 512x342 is very close to 3:2 aspect ratio, whereas 347 would give you an awkward 1.476:1 aspect ratio.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by ajross on Tuesday May 27, 2025 @08:11PM (#44111716)
That doesn't sound right. The tube the mac was displaying on was much closer to a TV-style 4:3 ratio anyway, there were significant blank spaces at the top and bottom.

If I was placing bets, it was another hardware limitation. Maybe 342 put them right at some particular DRAM timing limit for the chips they were signing contracts for. Or maybe more likely, the ~21.5 kHz scan rate was a hard limit from the tube supplier (that was much faster than TVs could do) and they had a firm 60 Hz requirement from Jobs or whoever.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by pezezin on Wednesday May 28, 2025 @01:08AM (#44112920)
You guys are ignoring the horizontal and vertical blanking periods, which were usually 25~35% of the active horizontal period and 8~10% of the active vertical period. I could find these two links that explain that the actual signal sent to the CRT was around 704x370 pixels:

https://nerdhut.de/2016/06/26/macintosh-classic-crt-1/

https://bobparadiso.com/wp-content/uploads/2014/09/timing.pn...

Re:Why the Original Macintosh Had a Screen Resolution of 512... by kragen on Wednesday May 28, 2025 @12:33AM (#44112766)
You could reduce the gain on the horizontal deflection drive coil by 2% to get back to 3:2. In fact, I doubt that it was precise to within 2%.
Re:Why the Original Macintosh Had a Screen Resolution of 512... by nothercastle on Tuesday May 27, 2025 @09:32PM (#44112069)
Why did they need 60hz? Why not 50 like Europe? Is there some massive advantage to syncing with the ac frequency of the local power grid?
Re:Why the Original Macintosh Had a Screen Resolution of 512... by MBCook on Tuesday May 27, 2025 @09:46PM (#44112126)
If you’re used to seeing 60Hz everywhere like Americans are 50Hz stands out like a sore thumb.

But mostly I suspect it’s just far easier.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by kragen on Wednesday May 28, 2025 @12:26AM (#44112739)
Conventional wisdom a few years after the Macintosh was that 50Hz was annoyingly flickery. Obviously this depends on your phosphors. Maybe it was already conventional wisdom at the time?

I feel like the extra 16% of screen real estate would have been worth it.

Re:Why the Original Macintosh Had a Screen Resolution of 512... by msephton on Wednesday May 28, 2025 @03:17AM (#44113460)
Speaking of phosphors, early Photoshop had a setting to pick what you were using. These adjusted RGB balance according to published or measured values. https://twitter.com/gingerbeardman/status/154371808662010265...
Re:Why the Original Macintosh Had a Screen Resolution of 512... by kwertyoowiyop on Wednesday May 28, 2025 @12:38PM (#44117824)
A white background at 50hz was pretty flickery, at least to my NTSC-experienced eyes, on a TV. Maybe they could have used longer persistence phosphors in their monitor, but then motion and animation would blur.