<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: i.mx8mp GPU and GTK4 app:  GUI/window present delay and  blocking Vivante /dev/galcore ioctl in i.MX Graphics</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411760#M1101</link>
    <description>&lt;P&gt;Hi Zhiming,&lt;BR /&gt;&lt;BR /&gt;Thanks for your quick response!&lt;BR /&gt;&lt;BR /&gt;Attached is a small skeleton but complete source file to test.&lt;BR /&gt;and the environment variables set before running:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/sh
export XDG_RUNTIME_DIR=/run/user/0
export WAYLAND_DISPLAY=wayland-1
export GDK_BACKEND=wayland
export GSK_RENDERER=gl&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the relevant from weston.ini:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@nitrogen8mp:~# cat /etc/xdg/weston/weston.ini
[core]
#gbm-format=argb8888
use-g2d=true
repaint-window=16
idle-time=0
xwayland=true
#enable-overlay-view=1

[shell]
panel-position=none

[libinput]
touchscreen_calibrator=true

#[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=rotate-90

#[output]
#name=HDMI-A-2
#mode=off
#       WIDTHxHEIGHT    Resolution size width and height in pixels
#       off             Disables the output
#       preferred       Uses the preferred mode
#       current         Uses the current crt controller mode
#transform=rotate-90

[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
#start-on-startup=true

[input-method]
path=/usr/libexec/ibus-wayland
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;the running time for the gtk_window_present on a desktop w/o GPU support takes some hundreds msec (&amp;lt; 1sec); and on the i.mx8mp device takes&amp;nbsp;9970 ms :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@nitrogen8mp:~# gtk4-test
A: activate: before _present: 47333 ms
B: activate: after _present: 57303 ms, takes: 9970 ms
C: activate: after idele_add: 57303 ms
D: startup_task_cb: 57315 ms
^C
root@nitrogen8mp:~#&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I have tried render: ngl, which leads to smear image/widgetrs/video, and &lt;SPAN&gt;Vulkan leads to critical errors:&amp;nbsp;Loader Message: vkCreateDevice: Failed to validate extensions in list;&amp;nbsp;Failed to realize renderer of type ‘GskVulkanRenderer’ for surface ‘GdkWaylandToplevel’: Could not find a Vulkan device with the required features.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Since out app need GPU support, and the recommended renderer under wayland/weston is still gl (UG10159&amp;nbsp; 11.3.2.1 GL renderer)&amp;nbsp; &amp;nbsp;, I hope you can help to find a solution.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2026 18:52:51 GMT</pubDate>
    <dc:creator>jim777</dc:creator>
    <dc:date>2026-09-07T18:52:51Z</dc:date>
    <item>
      <title>i.mx8mp GPU and GTK4 app:  GUI/window present delay and  blocking Vivante /dev/galcore ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411550#M1098</link>
      <description>&lt;DIV&gt;GTK4 Window Startup Delay (~10s) on i.MX8MP with Vivante GPU&lt;BR /&gt;&lt;DIV&gt;When using the default GTK4 GL renderer:&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;gtk_window_present(window);​&lt;/LI-CODE&gt;&lt;DIV&gt;takes approximately &lt;STRONG&gt;9-10 seconds before the window becomes visible&lt;/STRONG&gt;.&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;The evidence (&lt;STRONG&gt;see attached file&lt;/STRONG&gt;) strongly suggests that the startup delay is not caused by GTK application code.&lt;/P&gt;&lt;P&gt;The delay appears correlated with a blocking Vivante /dev/galcore ioctl within the GL rendering path. Software rendering (GSK_RENDERER=cairo) avoids the issue.&lt;BR /&gt;&lt;BR /&gt;We are looking for &lt;EM&gt;&lt;STRONG&gt;guidance&lt;/STRONG&gt;&lt;/EM&gt; on known issues, debugging methods, configuration changes, or fixes for GTK4/OpenGL startup latency on i.MX8MP with the Vivante GPU stack.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Sep 2026 22:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411550#M1098</guid>
      <dc:creator>jim777</dc:creator>
      <dc:date>2026-09-06T22:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mp GPU and GTK4 app:  GUI/window present delay and  blocking Vivante /dev/galcore ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411605#M1100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247983"&gt;@jim777&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for sharing such detailed information. Could you provide a minimal, reproducible GTK4 source code example? I need to conduct further testing in the NXP BSP.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2026 05:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411605#M1100</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2026-09-07T05:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mp GPU and GTK4 app:  GUI/window present delay and  blocking Vivante /dev/galcore ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411760#M1101</link>
      <description>&lt;P&gt;Hi Zhiming,&lt;BR /&gt;&lt;BR /&gt;Thanks for your quick response!&lt;BR /&gt;&lt;BR /&gt;Attached is a small skeleton but complete source file to test.&lt;BR /&gt;and the environment variables set before running:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/sh
export XDG_RUNTIME_DIR=/run/user/0
export WAYLAND_DISPLAY=wayland-1
export GDK_BACKEND=wayland
export GSK_RENDERER=gl&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the relevant from weston.ini:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@nitrogen8mp:~# cat /etc/xdg/weston/weston.ini
[core]
#gbm-format=argb8888
use-g2d=true
repaint-window=16
idle-time=0
xwayland=true
#enable-overlay-view=1

[shell]
panel-position=none

[libinput]
touchscreen_calibrator=true

#[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=rotate-90

#[output]
#name=HDMI-A-2
#mode=off
#       WIDTHxHEIGHT    Resolution size width and height in pixels
#       off             Disables the output
#       preferred       Uses the preferred mode
#       current         Uses the current crt controller mode
#transform=rotate-90

[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
#start-on-startup=true

[input-method]
path=/usr/libexec/ibus-wayland
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;the running time for the gtk_window_present on a desktop w/o GPU support takes some hundreds msec (&amp;lt; 1sec); and on the i.mx8mp device takes&amp;nbsp;9970 ms :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@nitrogen8mp:~# gtk4-test
A: activate: before _present: 47333 ms
B: activate: after _present: 57303 ms, takes: 9970 ms
C: activate: after idele_add: 57303 ms
D: startup_task_cb: 57315 ms
^C
root@nitrogen8mp:~#&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I have tried render: ngl, which leads to smear image/widgetrs/video, and &lt;SPAN&gt;Vulkan leads to critical errors:&amp;nbsp;Loader Message: vkCreateDevice: Failed to validate extensions in list;&amp;nbsp;Failed to realize renderer of type ‘GskVulkanRenderer’ for surface ‘GdkWaylandToplevel’: Could not find a Vulkan device with the required features.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Since out app need GPU support, and the recommended renderer under wayland/weston is still gl (UG10159&amp;nbsp; 11.3.2.1 GL renderer)&amp;nbsp; &amp;nbsp;, I hope you can help to find a solution.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2026 18:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/i-mx8mp-GPU-and-GTK4-app-GUI-window-present-delay-and-blocking/m-p/2411760#M1101</guid>
      <dc:creator>jim777</dc:creator>
      <dc:date>2026-09-07T18:52:51Z</dc:date>
    </item>
  </channel>
</rss>

