<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/pgo/full-headless-sway.sh, branch multi-cursor</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=multi-cursor</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=multi-cursor'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-12-08T08:10:43Z</updated>
<entry>
<title>pgo: run sway with --unsupported-gpu flag</title>
<updated>2024-12-08T08:10:43Z</updated>
<author>
<name>heather7283</name>
<email>heather7283@protonmail.com</email>
</author>
<published>2024-11-19T15:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=de305a7e58950d243b1e170cbb3df4ddbc8202e0'/>
<id>urn:sha1:de305a7e58950d243b1e170cbb3df4ddbc8202e0</id>
<content type='text'>
Sway refuses to run if it detects an nvidia GPU on the system,
causing pgo build to fail. Adding --unsupported-gpu flag disables
this behaviour.
</content>
</entry>
<entry>
<title>Don't use fancy Unicode quotes, stick to ASCII</title>
<updated>2024-02-06T11:36:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-02-06T11:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7999975016a57cc0a2c2e20bc55f29de32df7044'/>
<id>urn:sha1:7999975016a57cc0a2c2e20bc55f29de32df7044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: Use pixman renderer by default for PGO builds</title>
<updated>2021-10-08T14:34:36Z</updated>
<author>
<name>Stanislav Ochotnický</name>
<email>sochotnicky@redhat.com</email>
</author>
<published>2021-10-08T14:28:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85aaff68fbda7c84f95ab4f20da1e907c0657e01'/>
<id>urn:sha1:85aaff68fbda7c84f95ab4f20da1e907c0657e01</id>
<content type='text'>
Without pixman renderer override pgo builds in cage/sway require
access to actual render devices. In Gentoo's case the builds are run
as ordinary user and within a "sandbox" which prevents and logs access
outside of predefined places during build.

So let's default to pixman renderer for the PGO builds. Hopefully that
won't matter for the pgo optimizations to do the right thing within foot.
</content>
</entry>
<entry>
<title>pgo: add set -x to all PGO scripts</title>
<updated>2021-09-12T08:39:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T09:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99c4e51e199f87c0b4d97d43a2d34af62c6b7ae4'/>
<id>urn:sha1:99c4e51e199f87c0b4d97d43a2d34af62c6b7ae4</id>
<content type='text'>
Without this, debugging error reports from users is going to be _very_
difficult...
</content>
</entry>
<entry>
<title>pgo: replace meson-pgo.sh with several script primitives</title>
<updated>2021-09-12T08:39:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-09-04T08:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a43ae0d098da2b0a5d77b6ecbc578f6d14b22d55'/>
<id>urn:sha1:a43ae0d098da2b0a5d77b6ecbc578f6d14b22d55</id>
<content type='text'>
All scripts are in the ‘pgo’ directory:

* options: command line options for generate-alt-random-writes.py,
  sourced by other scripts.

* pgo.sh: top-level script, generates a meson build directory, selects
  a PGO method, generates the profiling data, re-configures the meson
  build directory and does the final build.

  This script is intended to be used by end-users, and shows _how_ to
  integrate the script primitives.

  Build servers will most likely *not* want to use this script as-is.

* partial.sh: generates alt-random-write data and runs “foot{,client}
  --version”, and then feeds the alt-random data to the PGO helper
  binary. Does not require a running Wayland session. Touches
  $blddir/pgo-ok on success.

* full-inner.sh: runs “footclient --version”, and then a complex
  “foot” command that first generates alt-random-write data, and then
  “cat’s” it. Requires a running Wayland session, *but*, this script
  is usually not called directly (see below). Touches $blddir/pgo-ok
  onsucces..

* full-current-session.sh: runs full-inner.sh. That is, it runs foot
  in the currently running Wayland session. Note that this will pop up a
  foot window.

* full-headless-sway.sh: generates a custom Sway configuration that
  exec’s foot-headless-sway-inner.sh (see below), and then executes a
  headless Sway. In other words, this script does a *full* PGO build,
  but *without* requiring a running Wayland session. Requires Sway &gt;=
  1.6.2.

* full-headless-sway.sh: runs full-inner.sh + “swaymsg exit”.

To do a custom PGO build, without using pgo.sh, you’d need to:

CFLAGS=”$CFLAGS -O3” meson --buildtype=release -Db_lto=true
meson configure -Db_pgo=generate
ninja
ninja test (only needed if tllist+fcft are built as subprojects)

Run *one* of:
  - partial.sh
  - full-current-session.sh
  - full-headless-sway.sh

meson configure -D b_pgo=use
ninja
</content>
</entry>
</feed>
