by jacquesm · 6y ago · 0 comments
Did you forget to run the OpenGL teapot?
BeOS was magical. I wish I could use Haiku in my desktop today.
I was taken aback by how slow Windows 95 felt after I finally jumped the wagon and retired my beloved Amiga in favor of a PC, circa 1995. Just moving the cursor was incredibly jerky in comparison and things would randomly freeze for seconds for no apparent reason. Windows NT 4 was much smoother though.
Even today, in Visual Studio, I regularly have multi-second pauses between a key press and the character showing-up on the screen, though this probably has more to do with Resharper than either Visual Studio or Windows.
On Arch Linux this is available as linux-zen
There is also realtime-linux - https://wiki.archlinux.org/index.php/Realtime_kernel_patchse...
This looks super fun to play with, thanks!
I’d hope this is much better now given things like Wayland and the increased use of parallelism.
Considering how FireWire worked in comparison to USB that's not particularly surprising. The host machine was more or less out of the way while the FW interfaces did their thing instead of requiring constant hand-holding.
Citation needed. Do you have any numbers on that?
I'm skeptical that BeOS has better latency than modern OSes on modern hardware.
IIUC input is still driven at 60Hz but changing this is in discussion [2].
[1] https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285 [2] https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/168
Why are inputs synchronized to the frame in Wayland? What the f---? That's just... wow.
The logic isn't perfect and the implementation is flawed but I see where the decision originated.
When I scroll in MS Word, there is this insane black tearing across the white surface when I scroll, but only on the laptop monitor.
It's A WORD PROCESSOR! It's just a word processor... It's.... weeps
People put up with slow responses today because many programmers are simply unaware that instantaneous response architectures are possible.
(And a real-time scheduler isn't enough by itself, the many layers of architecture around handling input events can still be bad even if you're meeting every deadline there.)
The human is still faster than the computer!
"""In an interactive software application, any user action SHOULD result in a noticeable change within 16ms, actionable information within 32ms, and at least one full screen of content within 64ms."""
click About - Not Found
to be fair, the empty white not found page did open probably under 64ms...
</subjective_opinion>
Sounds interesting enough to try. Which operating system is this ?
One really neat demo was 250 windows running the size of poststamps with a little bouncing line demo inside them. All still received their 'fair share' of time, all could still be moved around and expanded as though the machine was otherwise idle.
That's the scheduler. There are a lot of moving parts to running this code, I may make a little project out of restoring it to life under a VM at some point.
Happy reading.
Edit: reading it myself, wow, my English was cringe worthy back then. Moving to Canada certainly fixed that.
Mouse, keyboard, screen. Those are the things that should run at high priority. Everything else can - quite literally - wait.
Please expand on your reasoning here. Maybe hard realtime is optimal for a kiosk or appliance, but a general purpose OS treating "user input" as a hard interrupt seems problematic. I see merit in your position if we had a sub-category of "interactive OS" for general purpose end-user devices.
Is Fuchsia hard real time?
edit: looks like Fuchsia is based on the Wikipedia Overview https://en.wikipedia.org/wiki/Google_Fuchsia#Overview
If the processor is rendering a frame and a network packet comes in, now it needs to respond to the network first, and render the frame after processing the packet. That is a very simplified example on one processor, but there are trade-offs depending on workload/inputs/context-switching is what I'm saying, and measuring latency is step one in trying to optimize for it.
And does the mouse being a ps/2 input vs USB make a difference?
On the developer side, documentation was also amazing. There are tens of full, working example applications. BB10 used QT behind the scenes (Cascades UI). It had also a Python (2.x) binary on the device among other typical UNIX programs.
[0]: https://developer.blackberry.com/devzone/files/design/bb10/i...
[1]: https://developer.blackberry.com/devzone/design/bb10/10_3_vi...
[2]: https://developer.blackberry.com/devzone/design/bb10/keyboar...
This would be one way in which the Rust crowd could really make a difference.
The difference used to be very noticeable. Nowadays my PC doesn't have a PS/2 port.
- USB works by polling for changes at fixed intervals
- ps/2 works with interrupts, so the OS will know immediately when hw does something.
RTOSes are often found in autopilot and vehicle management systems controlling critical peripherals or safety critical software. More mundanely there are also sensors that will get upset if you don't give them undivided attention for fixed periods of time (or if you interrupt them, they will terminate the transfer). Image sensors are particularly picky about this.
It's a good lesson to play with polling versus interrupts on a micro. Susprising just how many cycles it takes to jump into the ISR.
More to read here: https://stackoverflow.com/questions/5452371/why-isnt-every-o...
Was this a QNX variant?
I'm wondering how you'd rate iOS, especiallly with the ProMotion displays on the iPad Pro. Do they come close in terms of responsiveness?
Which one?