Mangohud linux mint установка

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.

If you wish to compile MangoHud to keep up to date with any changes — first clone this repository and cd into it:

Using meson to install «manually»:

By default, meson should install MangoHud to /usr/local . Specify install prefix with —prefix=/usr if desired. Add -Dappend_libdir_mangohud=false option to meson to not append mangohud to libdir if desired (e.g. /usr/local/lib/mangohud).

To install 32-bit build on 64-bit distro, specify proper libdir : lib32 for Arch, lib/i386-linux-gnu on Debian. RPM-based distros usually install 32-bit libraries to /usr/lib and 64-bit to /usr/lib64 . You may have to change PKG_CONFIG_PATH to point to correct folders for your distro.

Install necessary development packages.

  • gcc, g++
  • or gcc-multilib, g++-multilib for 32-bit support
  • meson >=0.54
  • ninja (ninja-build)
  • glslang
  • vulkan headers if using -Duse_system_vulkan=enabled option with meson
  • libGL/libEGL (libglvnd, mesa-common-dev, mesa-libGL-devel etc)
  • X11 (libx11-dev)
  • libdrm (libdrm-dev)
  • XNVCtrl (libxnvctrl-dev), optional, use -Dwith_xnvctrl=disabled option with meson to disable
  • D-Bus (libdbus-1-dev), optional, use -Dwith_dbus=disabled option with meson to disable

Python 3 libraries:

  • Mako (python3-mako or install with pip )

If distro’s packaged meson is too old and gives build errors, install newer version with pip ( python3-pip ).

Building with build script

You can also use build.sh script to do some things automatically like install dependencies, if distro is supported but it usually assumes you are running on x86_64 architecture.

To just build it, execute:

You can also pass arguments to meson:

Resulting files will be install to ./build/release folder.

If you have compiled MangoHud from source, to install it, execute:

You can then subsequently uninstall MangoHud via the following command

To tar up the resulting binaries into a package and create a release tar with installer script, execute:

or combine the commands, although package should also call build if it doesn’t find the built libs:

If you have built MangoHud before and suddenly it fails, you can try cleaning the build folder, execute:

Currently it just does rm -fr build and clears subprojects.

NOTE: If you are running an Ubuntu-based, Arch-based, Fedora-based, or openSUSE-based distro, the build script will automatically detect and prompt you to install missing build dependencies. If you run into any issues with this please report them!

If you do not wish to compile anything, simply download the file under Releases, extract it, and from within the extracted folder in terminal, execute:

If you are using an Arch-based distribution, install mangohud and lib32-mangohud with your favourite AUR helper. mangohud-git and lib32-mangohud-git are also available on the AUR if you want the up-to-date version of MangoHud.

If you are building it by yourself, you need to enable multilib repository, by editing pacman config:

then save the file and execute:

Debian 11 (Bullseye)

If you are using Debian 11 or later, to install the MangoHud package, execute:

Optionally, if you also need MangoHud for 32-bit applications, execute:

If you are using Fedora, to install the MangoHud package, execute:

If you are using Solus, to install MangoHud simply execute:

User of Ubuntu 20.04 or newer can install a NVML enabled version of MangoHud from the MangoHud PPA maintained by Martin Wimpress:

NOTE: Currently PPA has no 32-bit libraries

If you run openSUSE Leap or Tumbleweed you can get Mangohud from the official repositories. There are two packages, mangohud for 64bit and mangohud-32bit for 32bit application support. To have Mangohud working for both 32bit and 64bit applications you need to install both packages even on a 64bit operating system.

Leap doesn’t seem to have the 32bit package.

If you are using Flatpaks, you will have to add the Flathub repository for your specific distribution, and then, to install it, execute:

For Steam flatpak

To enable MangoHud for all Steam games:

To enable the MangoHud overlay layer for Vulkan and OpenGL, run :

For Lutris games, go to the System options in Lutris (make sure that advanced options are enabled) and add this to the Command prefix setting:

For Steam games, you can add this as a launch option:

Or alternatively, add MANGOHUD=1 to your shell profile (Vulkan only).

OpenGL games may also need dlsym hooking. Add —dlsym or MANGOHUD_DLSYM=1 env var to your command like mangohud —dlsym %command% for Steam.

Some Linux native OpenGL games overrides LD_PRELOAD and stops MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script LD_PRELOAD=/path/to/mangohud/lib/

MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are:

  1. /path/to/application/dir/MangoHud.conf
  2. Per-application configuration in

/.config/MangoHud:

  1. $HOME/.config/MangoHud/application_name.conf
  2. $HOME/.config/MangoHud/wine-application_name.conf for wine/proton apps
  • $HOME/.config/MangoHud/MangoHud.conf
  • You can find an example config in /usr/share/doc/mangohud

    GOverlay is a GUI application that can be used to manage the config

    MANGOHUD_CONFIG and MANGOHUD_CONFIGFILE environment variables

    You can also customize the hud by using the MANGOHUD_CONFIG environment variable while separating different options with a comma. This takes priority over any config file.

    You can also specify configuration file with MANGOHUD_CONFIGFILE=/path/to/config for applications whose names are hard to guess (java, python etc).

    Читайте также:  Установка openserver windows 10

    A partial list of parameters are below. See the config file for a complete list. Parameters that are enabled by default have to be explicitly disabled. These (currently) are fps , frame_timing , cpu_stats (cpu load), gpu_stats (gpu load).

    Variable Description
    cpu_temp
    gpu_temp
    Displays current CPU/GPU temperature
    core_load Displays load & frequency per core
    gpu_core_clock
    gpu_mem_clock
    Displays GPU core/memory frequency
    ram
    vram
    Displays system RAM/VRAM usage
    swap Displays swap space usage next to system RAM usage
    procmem
    procmem_shared , procmem_virt
    Displays process’ memory usage: resident, shared and/or virtual. procmem (resident) also toggles others off if disabled.
    full Enables most of the toggleable parameters (currently excludes histogram )
    font_size= Customizeable font size (default=24)
    font_size_text= Customizeable font size for other text like media metadata (default=24)
    font_scale= Set global font scale (default=1.0)
    font_file Change default font (set location to .TTF/.OTF file )
    font_file_text Change text font. Otherwise font_file is used
    font_glyph_ranges Specify extra font glyph ranges, comma separated: korean , chinese , chinese_simplified , japanese , cyrillic , thai , vietnamese , latin_ext_a , latin_ext_b . If you experience crashes or text is just squares, reduce font size or glyph ranges.
    no_small_font Use primary font size for smaller text like units
    width=
    height=
    Customizeable hud dimensions (in pixels)
    position= Location of the hud: top-left (default), top-right , middle-left , middle-right , bottom-left , bottom-right , top-center
    offset_x offset_y Hud position offsets
    no_display Hide the hud by default
    toggle_hud=
    toggle_logging=
    Modifiable toggle hotkeys. Default are Shift_R+F12 and Shift_L+F2 , respectively.
    reload_cfg= Change keybind for reloading the config. Default = Shift_L+F4
    time
    time_format=%T
    Displays local time. See std::put_time for formatting help. NOTE: Sometimes apps (or AMDVLK (should be fixed in latest)) may set TZ (timezone) environment variable to UTC/GMT
    gpu_color
    cpu_color
    vram_color
    ram_color
    io_color
    engine_color
    frametime_color
    background_color
    text_color
    media_player_color
    Change default colors: gpu_color=RRGGBB
    alpha Set the opacity of all text and frametime graph 0.0-1.0
    background_alpha Set the opacity of the background 0.0-1.0
    read_cfg Add to MANGOHUD_CONFIG as first parameter to also load config file. Otherwise only MANGOHUD_CONFIG parameters are used.
    output_folder Set location of the output files (Required for logging)
    log_duration Set amount of time the logging will run for (in seconds)
    vsync
    gl_vsync
    Set vsync for OpenGL or Vulkan
    media_player Show media player metadata
    media_player_name Force media player DBus service name without the org.mpris.MediaPlayer2 part, like spotify , vlc , audacious or cantata . If none is set, MangoHud tries to switch between currently playing players.
    media_player_format Format media player metadata. Add extra text etc. Semi-colon breaks to new line. Defaults to ;<artist>; <album>.</td> </tr> <tr> <td>font_scale_media_player</td> <td>Change size of media player text relative to font_size</td> </tr> <tr> <td>io_read <br/>io_write</td> <td>Show non-cached IO read/write, in MiB/s</td> </tr> <tr> <td>pci_dev</td> <td>Select GPU device in multi-gpu setups</td> </tr> <tr> <td>version</td> <td>Shows current mangohud version</td> </tr> <tr> <td>fps_limit</td> <td>Limit the apps framerate. Comma-separated list of one or more FPS values. 0 means unlimited.</td> </tr> <tr> <td>toggle_fps_limit</td> <td>Cycle between FPS limits. Defaults to Shift_L+F1 .</td> </tr> <tr> <td>arch</td> <td>Show if the application is 32 or 64 bit</td> </tr> <tr> <td>histogram</td> <td>Change fps graph to histogram</td> </tr> <tr> <td>cpu_text <br/>gpu_text</td> <td>Override CPU and GPU text</td> </tr> <tr> <td>log_interval</td> <td>Change the default log interval, 100 is default</td> </tr> <tr> <td>vulkan_driver</td> <td>Displays used vulkan driver, radv/amdgpu-pro/amdvlk</td> </tr> <tr> <td>gpu_name</td> <td>Displays GPU name from pci.ids</td> </tr> <tr> <td>cpu_power <br/>gpu_power</td> <td>Display CPU/GPU draw in watts</td> </tr> <tr> <td>engine_version</td> <td>Display OpenGL or vulkan and vulkan-based render engine’s version</td> </tr> <tr> <td>permit_upload</td> <td>Allow uploading of logs to Flightlessmango.com</td> </tr> <tr> <td>upload_log</td> <td>Change keybind for uploading log</td> </tr> <tr> <td>benchmark_percentiles</td> <td>Configure which framerate percentiles are shown in the logging summary. Default is 97,AVG,1,0.1</td> </tr> <tr> <td>wine</td> <td>Shows current Wine or Proton version in use</td> </tr> <tr> <td>wine_color</td> <td>Change color of the wine/proton text</td> </tr> <tr> <td>cpu_mhz</td> <td>Shows the CPUs current MHz</td> </tr> <tr> <td>gpu_load_change</td> <td>Changes the color of the GPU load depending on load</td> </tr> <tr> <td>gpu_load_color</td> <td>Set the colors for the gpu load change low,medium and high. e.g gpu_load_color=0000FF,00FFFF,FF00FF</td> </tr> <tr> <td>gpu_load_value</td> <td>Set the values for medium and high load e.g gpu_load_value=50,90</td> </tr> <tr> <td>cpu_load_change</td> <td>Changes the color of the CPU load depending on load</td> </tr> <tr> <td>cpu_load_color</td> <td>Set the colors for the gpu load change low,medium and high. e.g cpu_load_color=0000FF,00FFFF,FF00FF</td> </tr> <tr> <td>cpu_load_value</td> <td>Set the values for medium and high load e.g cpu_load_value=50,90</td> </tr> <tr> <td>core_load_change</td> <td>Changes the colors of cpu core loads, uses the same data from cpu_load_value and cpu_load_change</td> </tr> <tr> <td>cellpadding_y</td> <td>Set the vertical cellpadding, default is -0.085</td> </tr> <tr> <td>frametime</td> <td>Display frametime next to fps text</td> </tr> <tr> <td>table_columns</td> <td>Set the number of table columns for ImGui, defaults to 3</td> </tr> <tr> <td>blacklist</td> <td>Add a program to the blacklist. e.g blacklist=vkcube,WatchDogs2.exe</td> </tr> <tr> <td>resolution</td> <td>Display the current resolution</td> </tr> <tr> <td>show_fps_limit</td> <td>Display the current fps limit</td> </tr> <tr> <td>custom_text_center</td> <td>Display a custom text centered useful for a header e.g custom_text_center=FlightLessMango Benchmarks</td> </tr> <tr> <td>custom_text</td> <td>Display a custom text e.g custom_text=Fsync enabled</td> </tr> <tr> <td>round_corners</td> <td>Change the amount of roundness of the corners have e.g round_corners=10.0</td> </tr> <tr> <td>vkbasalt</td> <td>Shows if vkbasalt is on</td> </tr> <tr> <td>gamemode</td> <td>Shows if gamemode is on</td> </tr> <tr> <td>battery</td> <td>Display current battery percent and energy consumption</td> </tr> <tr> <td>battery_icon</td> <td>Display battery icon instead of percent</td> </tr> <tr> <td>battery_color</td> <td>Change the BATT text color</td> </tr> <tr> <td>force_amdgpu_hwmon</td> <td>Use hwmon sysfs instead of libdrm for amdgpu stats</td> </tr> </tbody> </table> <p>Example: MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32 Because comma is also used as option delimiter and needs to be escaped for values with a backslash, you can use + like MANGOHUD_CONFIG=fps_limit=60+30+0 instead.</p> <p>Note: Width and Height are set automatically based on the font_size, but can be overridden.</p> <p><span class="link" data-link="http://github.com/flightlessmango/MangoHud" >Источник</span></p> <h2>Mangohud linux mint установка</h2> <p>A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.</p> <p style="clear: both"><img decoding="async" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E" data-lazy-src="https://github.com/flightlessmango/MangoHud/raw/master/assets/overlay_example.gif"/><noscript><img decoding="async" src="https://github.com/flightlessmango/MangoHud/raw/master/assets/overlay_example.gif"/></noscript></p> <p>If you wish to compile MangoHud to keep up to date with any changes — first clone this repository and cd into it:</p> <p>Using meson to install «manually»:</p> <p>By default, meson should install MangoHud to /usr/local . Specify install prefix with —prefix=/usr if desired. Add -Dappend_libdir_mangohud=false option to meson to not append mangohud to libdir if desired (e.g. /usr/local/lib/mangohud).</p> <p>To install 32-bit build on 64-bit distro, specify proper libdir : lib32 for Arch, lib/i386-linux-gnu on Debian. RPM-based distros usually install 32-bit libraries to /usr/lib and 64-bit to /usr/lib64 . You may have to change PKG_CONFIG_PATH to point to correct folders for your distro.</p> <p>Install necessary development packages.</p> <ul> <li>gcc, g++</li> <li>or gcc-multilib, g++-multilib for 32-bit support</li> <li>meson >=0.54</li> <li>ninja (ninja-build)</li> <li>glslang</li> <li>vulkan headers if using -Duse_system_vulkan=enabled option with meson</li> <li>libGL/libEGL (libglvnd, mesa-common-dev, mesa-libGL-devel etc)</li> <li>X11 (libx11-dev)</li> <li>libdrm (libdrm-dev)</li> <li>XNVCtrl (libxnvctrl-dev), optional, use -Dwith_xnvctrl=disabled option with meson to disable</li> <li>D-Bus (libdbus-1-dev), optional, use -Dwith_dbus=disabled option with meson to disable</li> </ul> <p>Python 3 libraries:</p> <ul> <li>Mako (python3-mako or install with pip )</li> </ul> <p>If distro’s packaged meson is too old and gives build errors, install newer version with pip ( python3-pip ).</p> <p>Building with build script</h3> </p> <p>You can also use build.sh script to do some things automatically like install dependencies, if distro is supported but it usually assumes you are running on x86_64 architecture.</p> <p>To just build it, execute:</p> <p>You can also pass arguments to meson:</p> <p>Resulting files will be install to ./build/release folder.</p> <p>If you have compiled MangoHud from source, to install it, execute:</p> <p>You can then subsequently uninstall MangoHud via the following command</p> <p>To tar up the resulting binaries into a package and create a release tar with installer script, execute:</p> <p>or combine the commands, although package should also call build if it doesn’t find the built libs:</p> <p>If you have built MangoHud before and suddenly it fails, you can try cleaning the build folder, execute:</p> <p>Currently it just does rm -fr build and clears subprojects.</p> <p><strong>NOTE: If you are running an Ubuntu-based, Arch-based, Fedora-based, or openSUSE-based distro, the build script will automatically detect and prompt you to install missing build dependencies. If you run into any issues with this please report them!</strong></p> <p>If you do not wish to compile anything, simply download the file under Releases, extract it, and from within the extracted folder in terminal, execute:</p> <p>If you are using an Arch-based distribution, install mangohud and lib32-mangohud with your favourite AUR helper. mangohud-git and lib32-mangohud-git are also available on the AUR if you want the up-to-date version of MangoHud.</p> <p>If you are building it by yourself, you need to enable multilib repository, by editing pacman config:</p> <p>then save the file and execute:</p> <p>Debian 11 (Bullseye)</h4> </p> <p>If you are using Debian 11 or later, to install the MangoHud package, execute:</p> <p>Optionally, if you also need MangoHud for 32-bit applications, execute:</p> <p>If you are using Fedora, to install the MangoHud package, execute:</p> <p>If you are using Solus, to install MangoHud simply execute:</p> <p>User of Ubuntu 20.04 or newer can install a NVML enabled version of MangoHud from the MangoHud PPA maintained by Martin Wimpress:</p> <p><strong>NOTE: Currently PPA has no 32-bit libraries</strong></p> <p>If you run openSUSE Leap or Tumbleweed you can get Mangohud from the official repositories. There are two packages, mangohud for 64bit and mangohud-32bit for 32bit application support. To have Mangohud working for both 32bit and 64bit applications you need to install both packages even on a 64bit operating system.</p> <p>Leap doesn’t seem to have the 32bit package.</p> <p>If you are using Flatpaks, you will have to add the Flathub repository for your specific distribution, and then, to install it, execute:</p> <p>For Steam flatpak</h5> </p> <p>To enable MangoHud for all Steam games:</p> <p>To enable the MangoHud overlay layer for Vulkan and OpenGL, run :</p> <p>For Lutris games, go to the System options in Lutris (make sure that advanced options are enabled) and add this to the Command prefix setting:</p> <p>For Steam games, you can add this as a launch option:</p> <p>Or alternatively, add MANGOHUD=1 to your shell profile (Vulkan only).</p> <p>OpenGL games may also need dlsym hooking. Add —dlsym or MANGOHUD_DLSYM=1 env var to your command like mangohud —dlsym %command% for Steam.</p> <p>Some Linux native OpenGL games overrides LD_PRELOAD and stops MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script LD_PRELOAD=/path/to/mangohud/lib/</p> <p>MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are:</p> <ol> <li>/path/to/application/dir/MangoHud.conf</li> <li>Per-application configuration in </ol> <p>/.config/MangoHud: </p> <ol> <li>$HOME/.config/MangoHud/application_name.conf</li> <li>$HOME/.config/MangoHud/wine-application_name.conf for wine/proton apps</li> </ol> </li> <li>$HOME/.config/MangoHud/MangoHud.conf</li> </ol> <p>You can find an example config in /usr/share/doc/mangohud</p> <p>GOverlay is a GUI application that can be used to manage the config</p> <p>MANGOHUD_CONFIG and MANGOHUD_CONFIGFILE environment variables</h3> </p> <p>You can also customize the hud by using the MANGOHUD_CONFIG environment variable while separating different options with a comma. This takes priority over any config file.</p> <p>You can also specify configuration file with MANGOHUD_CONFIGFILE=/path/to/config for applications whose names are hard to guess (java, python etc).</p> <p>A partial list of parameters are below. See the config file for a complete list. Parameters that are enabled by default have to be explicitly disabled. These (currently) are fps , frame_timing , cpu_stats (cpu load), gpu_stats (gpu load).</p> <table> <thead> <tr> <th>Variable</th> <th>Description</th> </tr> </th> <tbody> <tr> <td>cpu_temp <br/>gpu_temp</td> <td>Displays current CPU/GPU temperature</td> </tr> <tr> <td>core_load</td> <td>Displays load & frequency per core</td> </tr> <tr> <td>gpu_core_clock <br/>gpu_mem_clock</td> <td>Displays GPU core/memory frequency</td> </tr> <tr> <td>ram <br/>vram</td> <td>Displays system RAM/VRAM usage</td> </tr> <tr> <td>swap</td> <td>Displays swap space usage next to system RAM usage</td> </tr> <tr> <td>procmem <br/>procmem_shared , procmem_virt</td> <td>Displays process’ memory usage: resident, shared and/or virtual. procmem (resident) also toggles others off if disabled.</td> </tr> <tr> <td>full</td> <td>Enables most of the toggleable parameters (currently excludes histogram )</td> </tr> <tr> <td>font_size=</td> <td>Customizeable font size (default=24)</td> </tr> <tr> <td>font_size_text=</td> <td>Customizeable font size for other text like media metadata (default=24)</td> </tr> <tr> <td>font_scale=</td> <td>Set global font scale (default=1.0)</td> </tr> <tr> <td>font_file</td> <td>Change default font (set location to .TTF/.OTF file )</td> </tr> <tr> <td>font_file_text</td> <td>Change text font. Otherwise font_file is used</td> </tr> <tr> <td>font_glyph_ranges</td> <td>Specify extra font glyph ranges, comma separated: korean , chinese , chinese_simplified , japanese , cyrillic , thai , vietnamese , latin_ext_a , latin_ext_b . If you experience crashes or text is just squares, reduce font size or glyph ranges.</td> </tr> <tr> <td>no_small_font</td> <td>Use primary font size for smaller text like units</td> </tr> <tr> <td>width= <br/>height=</td> <td>Customizeable hud dimensions (in pixels)</td> </tr> <tr> <td>position=</td> <td>Location of the hud: top-left (default), top-right , middle-left , middle-right , bottom-left , bottom-right , top-center</td> </tr> <tr> <td>offset_x offset_y</td> <td>Hud position offsets</td> </tr> <tr> <td>no_display</td> <td>Hide the hud by default</td> </tr> <tr> <td>toggle_hud= <br/>toggle_logging=</td> <td>Modifiable toggle hotkeys. Default are Shift_R+F12 and Shift_L+F2 , respectively.</td> </tr> <tr> <td>reload_cfg=</td> <td>Change keybind for reloading the config. Default = Shift_L+F4</td> </tr> <tr> <td>time <br/>time_format=%T</td> <td>Displays local time. See std::put_time for formatting help. NOTE: Sometimes apps (or AMDVLK (should be fixed in latest)) may set TZ (timezone) environment variable to UTC/GMT</td> </tr> <tr> <td>gpu_color <br/>cpu_color <br/>vram_color <br/>ram_color <br/>io_color <br/>engine_color <br/>frametime_color <br/>background_color <br/>text_color <br/>media_player_color</td> <td>Change default colors: gpu_color=RRGGBB</td> </tr> <tr> <td>alpha</td> <td>Set the opacity of all text and frametime graph 0.0-1.0</td> </tr> <tr> <td>background_alpha</td> <td>Set the opacity of the background 0.0-1.0</td> </tr> <tr> <td>read_cfg</td> <td>Add to MANGOHUD_CONFIG as first parameter to also load config file. Otherwise only MANGOHUD_CONFIG parameters are used.</td> </tr> <tr> <td>output_folder</td> <td>Set location of the output files (Required for logging)</td> </tr> <tr> <td>log_duration</td> <td>Set amount of time the logging will run for (in seconds)</td> </tr> <tr> <td>vsync <br/>gl_vsync</td> <td>Set vsync for OpenGL or Vulkan</td> </tr> <tr> <td>media_player</td> <td>Show media player metadata</td> </tr> <tr> <td>media_player_name</td> <td>Force media player DBus service name without the org.mpris.MediaPlayer2 part, like spotify , vlc , audacious or cantata . If none is set, MangoHud tries to switch between currently playing players.</td> </tr> <tr> <td>media_player_format</td> <td>Format media player metadata. Add extra text etc. Semi-colon breaks to new line. Defaults to <title>;<artist>; <album>.</td> </tr> <tr> <td>font_scale_media_player</td> <td>Change size of media player text relative to font_size</td> </tr> <tr> <td>io_read <br/>io_write</td> <td>Show non-cached IO read/write, in MiB/s</td> </tr> <tr> <td>pci_dev</td> <td>Select GPU device in multi-gpu setups</td> </tr> <tr> <td>version</td> <td>Shows current mangohud version</td> </tr> <tr> <td>fps_limit</td> <td>Limit the apps framerate. Comma-separated list of one or more FPS values. 0 means unlimited.</td> </tr> <tr> <td>toggle_fps_limit</td> <td>Cycle between FPS limits. Defaults to Shift_L+F1 .</td> </tr> <tr> <td>arch</td> <td>Show if the application is 32 or 64 bit</td> </tr> <tr> <td>histogram</td> <td>Change fps graph to histogram</td> </tr> <tr> <td>cpu_text <br/>gpu_text</td> <td>Override CPU and GPU text</td> </tr> <tr> <td>log_interval</td> <td>Change the default log interval, 100 is default</td> </tr> <tr> <td>vulkan_driver</td> <td>Displays used vulkan driver, radv/amdgpu-pro/amdvlk</td> </tr> <tr> <td>gpu_name</td> <td>Displays GPU name from pci.ids</td> </tr> <tr> <td>cpu_power <br/>gpu_power</td> <td>Display CPU/GPU draw in watts</td> </tr> <tr> <td>engine_version</td> <td>Display OpenGL or vulkan and vulkan-based render engine’s version</td> </tr> <tr> <td>permit_upload</td> <td>Allow uploading of logs to Flightlessmango.com</td> </tr> <tr> <td>upload_log</td> <td>Change keybind for uploading log</td> </tr> <tr> <td>benchmark_percentiles</td> <td>Configure which framerate percentiles are shown in the logging summary. Default is 97,AVG,1,0.1</td> </tr> <tr> <td>wine</td> <td>Shows current Wine or Proton version in use</td> </tr> <tr> <td>wine_color</td> <td>Change color of the wine/proton text</td> </tr> <tr> <td>cpu_mhz</td> <td>Shows the CPUs current MHz</td> </tr> <tr> <td>gpu_load_change</td> <td>Changes the color of the GPU load depending on load</td> </tr> <tr> <td>gpu_load_color</td> <td>Set the colors for the gpu load change low,medium and high. e.g gpu_load_color=0000FF,00FFFF,FF00FF</td> </tr> <tr> <td>gpu_load_value</td> <td>Set the values for medium and high load e.g gpu_load_value=50,90</td> </tr> <tr> <td>cpu_load_change</td> <td>Changes the color of the CPU load depending on load</td> </tr> <tr> <td>cpu_load_color</td> <td>Set the colors for the gpu load change low,medium and high. e.g cpu_load_color=0000FF,00FFFF,FF00FF</td> </tr> <tr> <td>cpu_load_value</td> <td>Set the values for medium and high load e.g cpu_load_value=50,90</td> </tr> <tr> <td>core_load_change</td> <td>Changes the colors of cpu core loads, uses the same data from cpu_load_value and cpu_load_change</td> </tr> <tr> <td>cellpadding_y</td> <td>Set the vertical cellpadding, default is -0.085</td> </tr> <tr> <td>frametime</td> <td>Display frametime next to fps text</td> </tr> <tr> <td>table_columns</td> <td>Set the number of table columns for ImGui, defaults to 3</td> </tr> <tr> <td>blacklist</td> <td>Add a program to the blacklist. e.g blacklist=vkcube,WatchDogs2.exe</td> </tr> <tr> <td>resolution</td> <td>Display the current resolution</td> </tr> <tr> <td>show_fps_limit</td> <td>Display the current fps limit</td> </tr> <tr> <td>custom_text_center</td> <td>Display a custom text centered useful for a header e.g custom_text_center=FlightLessMango Benchmarks</td> </tr> <tr> <td>custom_text</td> <td>Display a custom text e.g custom_text=Fsync enabled</td> </tr> <tr> <td>round_corners</td> <td>Change the amount of roundness of the corners have e.g round_corners=10.0</td> </tr> <tr> <td>vkbasalt</td> <td>Shows if vkbasalt is on</td> </tr> <tr> <td>gamemode</td> <td>Shows if gamemode is on</td> </tr> <tr> <td>battery</td> <td>Display current battery percent and energy consumption</td> </tr> <tr> <td>battery_icon</td> <td>Display battery icon instead of percent</td> </tr> <tr> <td>battery_color</td> <td>Change the BATT text color</td> </tr> <tr> <td>force_amdgpu_hwmon</td> <td>Use hwmon sysfs instead of libdrm for amdgpu stats</td> </tr> </tbody> </table> <p>Example: MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32 Because comma is also used as option delimiter and needs to be escaped for values with a backslash, you can use + like MANGOHUD_CONFIG=fps_limit=60+30+0 instead.</p> <p>Note: Width and Height are set automatically based on the font_size, but can be overridden.</p> <p><span class="link" data-link="http://github.com/flightlessmango/MangoHud/blob/master/README.md" >Источник</span></p> <!-- toc empty --><div style="clear:both; margin-top:0em; margin-bottom:1em;"><a href="https://elcebador.ru/luchshiy-domashniy-media-server-dlya-windows/" target="_blank" rel="nofollow" class="u5e0a505e4b4658683dd447b3d0a43a24"><!-- INLINE RELATED POSTS 2/3 //--><style> .u5e0a505e4b4658683dd447b3d0a43a24 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#3498DB; border:0!important; border-left:4px solid #2980B9!important; text-decoration:none; } .u5e0a505e4b4658683dd447b3d0a43a24:active, .u5e0a505e4b4658683dd447b3d0a43a24:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u5e0a505e4b4658683dd447b3d0a43a24 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u5e0a505e4b4658683dd447b3d0a43a24 .ctaText { font-weight:bold; color:#000000; text-decoration:none; font-size: 16px; } .u5e0a505e4b4658683dd447b3d0a43a24 .postTitle { color:#141414; text-decoration: underline!important; font-size: 16px; } .u5e0a505e4b4658683dd447b3d0a43a24:hover .postTitle { text-decoration: underline!important; } </style><div style="padding-left:1em; padding-right:1em;"><span class="ctaText">Читайте также:</span>  <span class="postTitle">Лучший домашний медиа сервер для windows</span></div></a></div> </div><!-- .entry-content --> </article> <div class="rating-box"> <div class="rating-box__header">Оцените статью</div> <div class="wp-star-rating js-star-rating star-rating--score-0" data-post-id="327921" data-rating-count="0" data-rating-sum="0" data-rating-value="0"><span class="star-rating-item js-star-rating-item" data-score="1"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="2"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="3"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="4"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span><span class="star-rating-item js-star-rating-item" data-score="5"><svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="i-ico"><path fill="currentColor" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z" class="ico-star"></path></svg></span></div> </div> <div class="entry-social"> <div class="social-buttons"><span class="social-button social-button--vkontakte" data-social="vkontakte" data-image=""></span><span class="social-button social-button--facebook" data-social="facebook"></span><span class="social-button social-button--telegram" data-social="telegram"></span><span class="social-button social-button--odnoklassniki" data-social="odnoklassniki"></span><span class="social-button social-button--twitter" data-social="twitter"></span><span class="social-button social-button--sms" data-social="sms"></span><span class="social-button social-button--whatsapp" data-social="whatsapp"></span></div> </div> <meta itemprop="author" content="admin"> <meta itemscope itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" itemid="https://elcebador.ru/327921-2/" content=""> <meta itemprop="dateModified" content="2021-10-13"> <meta itemprop="datePublished" content="2021-10-13T08:19:30+02:00"> <div itemprop="publisher" itemscope itemtype="https://schema.org/Organization" style="display: none;"><meta itemprop="name" content="Советы по настройке компьютера"><meta itemprop="telephone" content="Советы по настройке компьютера"><meta itemprop="address" content="https://elcebador.ru"></div> </main><!-- #main --> </div><!-- #primary --> <aside id="secondary" class="widget-area" itemscope itemtype="http://schema.org/WPSideBar"> <div class="sticky-sidebar js-sticky-sidebar"> <div id="search-2" class="widget widget_search"> <form role="search" method="get" class="search-form" action="https://elcebador.ru/"> <label> <span class="screen-reader-text"><!--noindex-->Search for:<!--/noindex--></span> <input type="search" class="search-field" placeholder="Поиск…" value="" name="s"> </label> <button type="submit" class="search-submit"></button> </form></div> <div id="recent-posts-2" class="widget widget_recent_entries"> <div class="widget-header">Свежие записи</div> <ul> <li> <a href="https://elcebador.ru/398711-2/">Лучшие практики внедрения DevOps при разработке программного обеспечения</a> </li> <li> <a href="https://elcebador.ru/obzor-audacity-dlya-mac-i-alternativa/">Обзор Audacity для Mac и альтернатива</a> </li> <li> <a href="https://elcebador.ru/windows-ili-linux-chto-luchshe-vybrat/">Windows или Linux: Что лучше выбрать?</a> </li> <li> <a href="https://elcebador.ru/kak-v-windows-11-vklyuchit-i-vyklyuchit-bezopasnyy-rezhim/">Как в Windows 11 включить и выключить Безопасный режим?</a> </li> <li> <a href="https://elcebador.ru/app-data-papka-kak-pochistit-windows-10/">App data папка как почистить windows 10</a> </li> </ul> </div><div id="block-2" class="widget widget_block"><div class="flatPM_sidebar" data-top="70"> <div id="Q_sidebar"></div> </div></div> </div> </aside><!-- #secondary --> <div id="related-posts" class="related-posts fixed"><div class="related-posts__header">Вам также может понравиться</div><div class="post-cards post-cards--vertical"> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://elcebador.ru/windows-ili-linux-chto-luchshe-vybrat/"><img width="335" height="220" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20335%20220'%3E%3C/svg%3E" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" data-lazy-src="https://elcebador.ru/wp-content/uploads/2023/05/21-335x220.png"/><noscript><img width="335" height="220" src="https://elcebador.ru/wp-content/uploads/2023/05/21-335x220.png" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" loading="lazy"/></noscript></a></div><div class="post-card__title"><a href="https://elcebador.ru/windows-ili-linux-chto-luchshe-vybrat/">Windows или Linux: Что лучше выбрать?</a></div><div class="post-card__description">Есть много причин выбирать между Windows и Linux, но</div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://elcebador.ru/fayl-vladelets-izmenit-linux/"><img width="335" height="177" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20335%20177'%3E%3C/svg%3E" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" data-lazy-srcset="https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux.png 1971w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-300x159.png 300w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-1024x541.png 1024w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-768x406.png 768w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-1536x812.png 1536w" data-lazy-sizes="(max-width: 335px) 100vw, 335px" data-lazy-src="https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux.png"/><noscript><img width="335" height="177" src="https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux.png" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux.png 1971w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-300x159.png 300w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-1024x541.png 1024w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-768x406.png 768w, https://elcebador.ru/wp-content/uploads/2022/10/fayl-vladelets-izmenit-linux-1536x812.png 1536w" sizes="(max-width: 335px) 100vw, 335px"/></noscript></a></div><div class="post-card__title"><a href="https://elcebador.ru/fayl-vladelets-izmenit-linux/">Файл владелец изменить linux</a></div><div class="post-card__description">Команда Chown в Linux Chown Command in Linux (File</div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://elcebador.ru/ustanovka-shlyuza-po-umolchaniyu-linux/"><img width="294" height="220" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20294%20220'%3E%3C/svg%3E" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" data-lazy-src="https://elcebador.ru/wp-content/uploads/2022/10/ustanovka-shlyuza-po-umolchaniyu-linux.jpg"/><noscript><img width="294" height="220" src="https://elcebador.ru/wp-content/uploads/2022/10/ustanovka-shlyuza-po-umolchaniyu-linux.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" loading="lazy"/></noscript></a></div><div class="post-card__title"><a href="https://elcebador.ru/ustanovka-shlyuza-po-umolchaniyu-linux/">Установка шлюза по умолчанию linux</a></div><div class="post-card__description">Настройка сети вручную Содержание Краткое описание</div> </div> <div class="post-card post-card--related"> <div class="post-card__thumbnail"><a href="https://elcebador.ru/chem-razbit-disk-dlya-linux/"><img width="330" height="220" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20330%20220'%3E%3C/svg%3E" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" data-lazy-srcset="https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux.jpg 779w, https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux-300x200.jpg 300w, https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux-768x512.jpg 768w" data-lazy-sizes="(max-width: 330px) 100vw, 330px" data-lazy-src="https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux.jpg"/><noscript><img width="330" height="220" src="https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux.jpg" class="attachment-reboot_small size-reboot_small wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux.jpg 779w, https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux-300x200.jpg 300w, https://elcebador.ru/wp-content/uploads/2022/10/chem-razbit-disk-dlya-linux-768x512.jpg 768w" sizes="(max-width: 330px) 100vw, 330px"/></noscript></a></div><div class="post-card__title"><a href="https://elcebador.ru/chem-razbit-disk-dlya-linux/">Чем разбить диск для linux</a></div><div class="post-card__description">ИТ База знаний Курс по Asterisk Полезно — Узнать IP —</div> </div> </div></div> </div><!--.site-content-inner--> </div><!--.site-content--> <div class="site-footer-container "> <div class="footer-navigation fixed" itemscope itemtype="http://schema.org/SiteNavigationElement"> <div class="main-navigation-inner full"> <div class="menu-tehnicheskoe-menyu-container"><ul id="footer_menu" class="menu"><li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="https://elcebador.ru/pravoobladatelyam/">Правообладателям</a></li> <li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="https://elcebador.ru/politika-konfidentsialnosti/">Политика конфиденциальности</a></li> <li id="menu-item-398724" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-398724"><a href="https://elcebador.ru/kontakty/">Контакты</a></li> </ul></div> </div> </div><!--footer-navigation--> <footer id="colophon" class="site-footer site-footer--style-gray full"> <div class="site-footer-inner fixed"> <div class="footer-bottom"> <div class="footer-info"> © 2024 Советы по настройке компьютера </div> <div class="footer-counters"><!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(98979319, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/98979319" style="position:absolute; left:-9999px;" alt=""/></div></noscript> <!-- /Yandex.Metrika counter --></div></div> </div> </footer><!--.site-footer--> </div> <button type="button" class="scrolltop js-scrolltop"></button> </div><!-- #page --> <script>var pseudo_links = document.querySelectorAll(".pseudo-clearfy-link");for (var i=0;i<pseudo_links.length;i++ ) { pseudo_links[i].addEventListener("click", function(e){ window.open( e.target.getAttribute("data-uri") ); }); }</script><script type="text/javascript" id="reboot-scripts-js-extra"> /* <![CDATA[ */ var settings_array = {"rating_text_average":"\u0441\u0440\u0435\u0434\u043d\u0435\u0435","rating_text_from":"\u0438\u0437","lightbox_display":"1","sidebar_fixed":""}; var wps_ajax = {"url":"https:\/\/elcebador.ru\/wp-admin\/admin-ajax.php","nonce":"98295b6229"}; /* ]]> */ </script> <script type="text/javascript" src="https://elcebador.ru/wp-content/themes/reboot/assets/js/scripts.min.js" id="reboot-scripts-js"></script> <script type="text/javascript"> /*<![CDATA[*/ jQuery(document).ready(function($){ $('.link').replaceWith(function(){ var id = ( null != $(this).attr('id') ) ? ' id="' + $(this).attr('id') + '"' : '', target = ( null != $(this).attr('data-target') ) ? ' target="' + $(this).attr('data-target') + '"' : ' target="_blank"', title = ( null != $(this).attr('title') ) ? ' title="' + $(this).attr('title') + '"' : '', style = ( null != $(this).attr('style') ) ? ' style="' + $(this).attr('style') + '"' : '', rel = ( null != $(this).attr('data-rel') ) ? ' rel="' + $(this).attr('data-rel') + '"' : '', cl = ( null != $(this).attr('class') ) ? $(this).attr('class').replace('link','').trim() : ''; cl = ( '' != cl ) ? ' class="' + cl + '"' : ''; return '<a href="' + $(this).attr('data-link') + '" ' + title + id + cl + target + style + rel + ' >' + $(this).html() + '</a>'; }); }); /*]]>*/ </script> <script>window.lazyLoadOptions = [{ elements_selector: "img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]", data_src: "lazy-src", data_srcset: "lazy-srcset", data_sizes: "lazy-sizes", class_loading: "lazyloading", class_loaded: "lazyloaded", threshold: 300, callback_loaded: function(element) { if ( element.tagName === "IFRAME" && element.dataset.rocketLazyload == "fitvidscompatible" ) { if (element.classList.contains("lazyloaded") ) { if (typeof window.jQuery != "undefined") { if (jQuery.fn.fitVids) { jQuery(element).parent().fitVids(); } } } } }},{ elements_selector: ".rocket-lazyload", data_src: "lazy-src", data_srcset: "lazy-srcset", data_sizes: "lazy-sizes", class_loading: "lazyloading", class_loaded: "lazyloaded", threshold: 300, }]; window.addEventListener('LazyLoad::Initialized', function (e) { var lazyLoadInstance = e.detail.instance; if (window.MutationObserver) { var observer = new MutationObserver(function(mutations) { var image_count = 0; var iframe_count = 0; var rocketlazy_count = 0; mutations.forEach(function(mutation) { for (var i = 0; i < mutation.addedNodes.length; i++) { if (typeof mutation.addedNodes[i].getElementsByTagName !== 'function') { continue; } if (typeof mutation.addedNodes[i].getElementsByClassName !== 'function') { continue; } images = mutation.addedNodes[i].getElementsByTagName('img'); is_image = mutation.addedNodes[i].tagName == "IMG"; iframes = mutation.addedNodes[i].getElementsByTagName('iframe'); is_iframe = mutation.addedNodes[i].tagName == "IFRAME"; rocket_lazy = mutation.addedNodes[i].getElementsByClassName('rocket-lazyload'); image_count += images.length; iframe_count += iframes.length; rocketlazy_count += rocket_lazy.length; if(is_image){ image_count += 1; } if(is_iframe){ iframe_count += 1; } } } ); if(image_count > 0 || iframe_count > 0 || rocketlazy_count > 0){ lazyLoadInstance.update(); } } ); var b = document.getElementsByTagName("body")[0]; var config = { childList: true, subtree: true }; observer.observe(b, config); } }, false);</script><script data-no-minify="1" async src="https://elcebador.ru/wp-content/plugins/rocket-lazy-load/assets/js/16.1/lazyload.min.js"></script><script>function lazyLoadThumb(e,alt){var t='<img loading="lazy" src="https://i.ytimg.com/vi/ID/hqdefault.jpg" alt="" width="480" height="360">',a='<button class="play" aria-label="play Youtube video"></button>';t=t.replace('alt=""','alt="'+alt+'"');return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="ID?autoplay=1";t+=0===this.parentNode.dataset.query.length?'':'&'+this.parentNode.dataset.query;e.setAttribute("src",t.replace("ID",this.parentNode.dataset.src)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),e.setAttribute("allow", "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),this.parentNode.parentNode.replaceChild(e,this.parentNode)}document.addEventListener("DOMContentLoaded",function(){var e,t,p,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t<a.length;t++)e=document.createElement("div"),e.setAttribute("data-id",a[t].dataset.id),e.setAttribute("data-query", a[t].dataset.query),e.setAttribute("data-src", a[t].dataset.src),e.innerHTML=lazyLoadThumb(a[t].dataset.id,a[t].dataset.alt),a[t].appendChild(e),p=e.querySelector('.play'),p.onclick=lazyLoadYoutubeIframe});</script> </body> </html>