我们使用 clutter 来渲染屏幕并处理 IMX31 板上的 GUI 事件。
问题描述:-
On startup the buttons,texture will be loaded into memory. When we click any buttons then associated panel(ClutterGroup) will be processed and shown in Clutter main stage.
第一次处理所有子项并使其可见时,屏幕呈现速度很慢。它还首次在 clutter-stage.c 中抛出 230 条重绘错误消息。屏幕渲染时间超过 2 秒。
Clutter-Message: [PAINT] ./clutter-stage.c:3369: First redraw request
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 1
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 2
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [TEXTURE] ./clutter-texture.c:311: Texture realized
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 3
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 4
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 5
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 6
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 7
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 8
Clutter-Message: [PAINT] ./clutter-stage.c:3380: Redraw request number 9
.....................
当我们再次进入同一个屏幕时,屏幕转换是如此之快,以微秒为单位。
此外,不会有更多的重绘消息,只有 19 条重绘消息。
只是我想知道我们如何避免在clutter-stage.c(Clutter 1.6)中出现重绘请求?哪个杂波函数调用触发重绘请求?
提前致谢,
问候, 卡西克