-1

我们使用 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)中出现重绘请求?哪个杂波函数调用触发重绘请求?

提前致谢,

问候, 卡西克

4

1 回答 1

0

首先,Clutter 1.6 是旧的稳定版本,因此您可能需要检查 Clutter 1.8。

您在初始帧上的减速可能是由于将图像数据上传到 GPU:此操作很敏感,并且取决于您可以使用的内存带宽量。

我的建议是尝试不要在启动时同步加载所有纹理,而是单独和懒惰地加载每个纹理,一次一个。

于 2012-01-13T16:28:57.897 回答