2D performance

Performance data for Scaling Operations are as follows, these are H/W Performance figures.
Up scaling ~110MP/sec
Down scaling ~55Mp/sec
Scaling with Alpha blending ~50Mp/sec

this is the equn to caliculate mp/sec
for example if you are doing a blit from Src 1280x720 to Dst 1280 x 720
then total number of pixel that u blit is ( 1280*720 = 921600 )
suppose blit time is 9ms
then MP/sec would be ==> 921600/9ms = (921600*1000)/9 p/Sec ==> 102.4 Mp/Sec

9ms for 1280x720 means its giving ~102MP/sec
Ideally stretch should give close to ~110Mp/Sec

 

without alpha blending.
Blit vs Stretch.
[0,0,720,576]->[0,0,720,576]
[0000] [ALPHA:00] Blit  [CB->SD] [0050F938]->[0050F900][0000,0000,0720,0576]->[0000,0000,0720,0576] 04 ms
[0000] [ALPHA:00] Blit  [CB->SD] [0050F938]->[0050F900][0000,0000,0720,0576]->[0000,0000,0720,0576] 08 ms

stretch
[0,0,1280,720]->[0,0,1920,1080]
[0001] [ALPHA:00] Blit  [CB->HD] [0050F954]->[0050F91C][0000,0000,1280,0720]->[0000,0000,1920,1080] 20 ms
[0,0,1280,720]->[0,0,720,576]
[0002] [ALPHA:00] Blit  [CB->SD] [0050F954]->[0050F900][0000,0000,1280,0720]->[0000,0000,0720,0576] 18 ms

[0,0,720,576]->[0,0,1920,1080]
[0133] [ALPHA:00] Blit  [CB->FB] [0123A400]->[0123A3C8][0000,0000,0720,0576]->[0000,0000,1920,1080] 12 ms
[0,0,720,576]->[0,0,720,576]
[0134] [ALPHA:00] Blit  [CB->FB] [0123A400]->[0123A3AC][0000,0000,0720,0576]->[0000,0000,0720,0576] 04 ms


no alpha vs Alpha blending:
[004] [ALPHA:00] Blit [9000FEA8-9000F958] [CB->CB] [0000,0000,1280,0720]->[0000,0000,1280,0720] 09 ms
[005] [ALPHA:16] Blit [9000FC00-9000F958] [CB->CB] [0000,0000,1280,0720]->[0000,0000,1280,0720] 17 ms

 

爲什麼爲出現鋸齒:
    單BUFFER機製造成的,雙BUFFER機制中,BLIT操作空閒BUFF,BLIT的過程用戶不可見,等整個BLIT完成後,然後才把顯示切換過來。

 

 

結論:

      客戶的應用對2D performance 要求非常高,目前測試的時間與2D硬件上設計的速度基本符合。只能從軟件的架構上想辦法。

      找到了一種折中的解決辦法,close this issue.

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章