2012-01-13 46 views
-1

我們使用混亂來渲染屏幕並在IMX31板上處理GUI事件。雜波1.6。是第一次單獨放慢屏幕渲染

問題描述: -

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)中重繪請求? 哪個混亂函數調用觸發器重繪請求?

由於提前,

與問候, Karthick

回答

0

首先,雜波1.6是舊的穩定版本,所以你可能要檢查雜波1.8。

您在初始幀上的放緩速度可能是由於將圖像數據上載到GPU所致:此操作非常敏感,並且取決於您擁有的內存帶寬量。

我的建議是嘗試並不是在啓動時同步加載所有紋理,而是逐個加載每個紋理,並一次一個地加載。