News for hackers. Stuff that matters.
Re:iTerm2 has a new drawing engine that uses Metal 2 by dev_dull on Saturday July 28, 2018 @03:58PM (#17634718)
After trying out alacritty[1] and seeing just how good gpu-accelerated terminal could be I’ve been eagerly awaiting an update like this from iterm.

I really wish iterm was cross platform. I’ve realized when switching between Mac and Linux how important the terminal is to my development and quality of life.

1. https://github.com/jwilm/alacritty

Re:iTerm2 has a new drawing engine that uses Metal 2 by davrot on Saturday July 28, 2018 @04:05PM (#17634754)
I would recommend kitty[1] as well, it certainly has more features than alacritty, like opening links via keyboard using hints.

1. https://github.com/kovidgoyal/kitty

Re:iTerm2 has a new drawing engine that uses Metal 2 by reaperducer on Saturday July 28, 2018 @04:26PM (#17634862)
I recommend Cool Retro Term. No tabs. Not a lot of features. Emulation can be a little strange. But it's cross-platform and a metric ass ton of fun.

https://github.com/Swordfish90/cool-retro-term

And if you push the settings right, you can use it to convince the procurement department that you need a new monitor.

Re:iTerm2 has a new drawing engine that uses Metal 2 by indymike on Sunday July 29, 2018 @04:06PM (#17640003)
Cool Retro Term is based on konsole, so it's actually a solid terminal emulater... and like you pointed out... loads of fun.
Re:iTerm2 has a new drawing engine that uses Metal 2 by lima on Saturday July 28, 2018 @04:25PM (#17634847)
Just had a look at their docs:

https://sw.kovidgoyal.net/kitty/remote-control.html

Cool, it even works over SSH! Wait, what? This lets a remote server take over your workstation.

Re:iTerm2 has a new drawing engine that uses Metal 2 by cweagans on Saturday July 28, 2018 @05:53PM (#17635255)
...so don't enable that feature? It's off by default AFAICT.
Re:iTerm2 has a new drawing engine that uses Metal 2 by sbilstein on Saturday July 28, 2018 @07:28PM (#17635604)
if you're able to get an ssh tunnel going to the machine...i think you already have control over the server
Re:iTerm2 has a new drawing engine that uses Metal 2 by danielvf on Saturday July 28, 2018 @08:24PM (#17635801)
This optional feature is the other way around. When you turn it on, the connect to a remote servers, that remote server can run commands on your local box.
Re:iTerm2 has a new drawing engine that uses Metal 2 by nextos on Saturday July 28, 2018 @05:34PM (#17635185)
I actually like alacritty, but surprisingly latency is still much higher than on xterm or eshell. These are relatively slow rendering massive amounts of text (eshell much slower than xterm, and lacking many features).

However, the feature I price the most is quick responsiveness when I type. For that, I still find xterm extremely good.

Re:iTerm2 has a new drawing engine that uses Metal 2 by twic on Saturday July 28, 2018 @07:00PM (#17635492)
I am surprised to see nobody has posted a link to Dan Luu's article about benchmarking terminal emulator latency:

https://danluu.com/term-latency/

For me, one of the takeaways from this is that time taken to cat a large file is a poor benchmark of a terminal emulator.

This article also includes a nice demonstration of yet another application of Rust - as an easily reproducible and highly reliable way to load your machine so hard it interferes with your terminal.

Re:iTerm2 has a new drawing engine that uses Metal 2 by saagarjha on Saturday July 28, 2018 @07:11PM (#17635532)
Any low-level language can do that.
Re:iTerm2 has a new drawing engine that uses Metal 2 by 0x00000000 on Saturday July 28, 2018 @04:15PM (#17634805)
Any idea how it affects battery usage on a laptop with an integrated GPU?
Re:iTerm2 has a new drawing engine that uses Metal 2 by saagarjha on Saturday July 28, 2018 @04:17PM (#17634816)
iTerm actually disables the Metal rederer while on battery by default.
Re:iTerm2 has a new drawing engine that uses Metal 2 by _asummers on Saturday July 28, 2018 @04:32PM (#17634885)
I think that was the point of their question. While it's disabled by default, if it goes from 12h life to 6h, people will leave disabled. If it goes from 12h to 11.5h, people maybe would consider flipping that toggle.
Re:iTerm2 has a new drawing engine that uses Metal 2 by tbrock on Saturday July 28, 2018 @06:24PM (#17635382)
Kind of counter intuitive. Wouldn’t the GPU be more efficient at rendering graphics than the CPU? For laptop models with dedicated GPU just use the integrated one on battery but ALWAYS prefer Metal GPU rendering to software.
Re:iTerm2 has a new drawing engine that uses Metal 2 by gnachman on Saturday July 28, 2018 @09:08PM (#17635924)
No, it's not. Each visible pane gets its own thread, and three frames are pipelined. That means you could easily keep two cores plus your GPU going full steam (provided you have an underpowered GPU, which you almost certainly do, because you have a mac). In the legacy renderer, everything happened on the main thread so the most power it could draw was one core at 100%.
Re:iTerm2 has a new drawing engine that uses Metal 2 by runeks on Tuesday July 31, 2018 @02:55PM (#17655968)
> In the legacy renderer, everything happened on the main thread so the most power it could draw was one core at 100%.

We’re not talking about wattage, but energy consumption. I.e. a single core working at its max for 5 seconds uses more power than three cores working for one second. It’s a question of efficiency, not how many cores are working at once.

Re:iTerm2 has a new drawing engine that uses Metal 2 by dantiberian on Saturday July 28, 2018 @08:43PM (#17635851)
I’m guessing here but given the target of macOS this is done to prevent the GPU from being used. Many apps on macOS can do their drawing on the CPU or via the onboard Intel graphics. Metal presumably would force the GPU on, which would impact battery life.
Re:iTerm2 has a new drawing engine that uses Metal 2 by tbrock on Saturday July 28, 2018 @10:30PM (#17636183)
Except that is not how it works. Metal absolutely works with the integrated GPU.
Re:iTerm2 has a new drawing engine that uses Metal 2 by ripdog on Sunday July 29, 2018 @10:23AM (#17638260)
He wasn't saying metal can render via the cpu, he was saying that macos apps in general can choose whether to use cpu or gpu rendering.
Re:iTerm2 has a new drawing engine that uses Metal 2 by aschneid on Monday July 30, 2018 @02:46PM (#17646903)
Has the bug been fixed where it doesn't disable? I had to track down why my Nvidia GPU was being used all the time and killing my battery. Turns out it's iTerm2 and it isn't disabling the renderer correctly.
Re:iTerm2 has a new drawing engine that uses Metal 2 by c-smile on Saturday July 28, 2018 @05:36PM (#17635193)
"gpu-accelerated cross platform" is not that hard as it sounds.

Here is an example of GPU rendering with support of Acrylic(Windows) / Vibrancy (MacOS) so popular in terminal implementations: https://sciter.com/sciter-4-2-support-of-acrylic-theming/

Re:iTerm2 has a new drawing engine that uses Metal 2 by dagmx on Saturday July 28, 2018 @06:38PM (#17635424)
Your link is about html themes? What does it have to do with cross platform, GPU accelerated drawing?
Re:iTerm2 has a new drawing engine that uses Metal 2 by mwcampbell on Saturday July 28, 2018 @11:33PM (#17636374)
Sciter is an HTML rendering engine. It has to do its drawing somehow, and apparently it uses GPU acceleration across platforms.
Re:iTerm2 has a new drawing engine that uses Metal 2 by ComputerGuru on Sunday July 29, 2018 @02:35AM (#17636836)
alacritty is meant to be fast, but it isn’t even close yet. The last time I checked there were multiple issues open about it being in reality slower than even terminal.app