opengl display a image spend too much time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

opengl display a image spend too much time

787 Views
chenghaibo
Contributor III

my program load a bmp image and display it, after start up it, we should wait for a about 4.7s, then the screen would display the image.

 ./simple_gpu_player
get context for OpenGL & create frame buffer used:159.653000
link the shader used:183.930000


....
render end used:916.304000
render end used:932.968000

render end used:1982.968000
render end used:1999.632000
render end used:2016.304000
render end used:2032.969000
render end used:2049.636000

render end used:2866.298000

render end used:3082.967000

...  the screen is black
render end used:4682.972000
render end used:4699.636000
render end used:4716.304000
render end used:4732.968000

0 Kudos
5 Replies

636 Views
chenghaibo
Contributor III

after recompile the kernel, the program base on opengl es2 display the image spended less than 1 second

0 Kudos

636 Views
joanxie
NXP TechSupport
NXP TechSupport

what GPU version do you use? did you use the latest version?

0 Kudos

636 Views
chenghaibo
Contributor III

GPU Info
gpu      : 0
model    : 3000
revision : 5450

gpu      : 1
model    :  320
revision : 5303

gpu      : 2
model    :  355
revision : 1216

VIDEO MEMORY:
    gcvPOOL_SYSTEM:
        Free  :  134217728 B
        Used  :          0 B
        Total :  134217728 B
    gcvPOOL_CONTIGUOUS:
        Used  :          0 B
    gcvPOOL_VIRTUAL:
        Used  :          0 B

NON PAGED MEMORY:
    Used  :          0 B
Paged memory Info
low:  0 bytes
high: 0 bytes
CMA memory info
cma:  0 bytes

 Device ID:     0
         Device Ptr:    0x0049b644
                 CL_DEVICE_NAME: Vivante OpenCL Device
                 CL_DEVICE_VENDOR: Vivante Corporation
                 CL_DEVICE_TYPE:                                GPU
                 CL_DEVICE_OPENCL_C_VERSION:                    OpenCL C 1.1
                 CL_DEVICE_VENDOR_ID:                           0x00564956
                 CL_DEVICE_PLATFORM:                            0x766c9d2c
                 CL_DEVICE_VERSION:                             OpenCL 1.1
                 CL_DEVICE_PROFILE:                             EMBEDDED_PROFILE
                 CL_DRIVER_VERSION:                             OpenCL 1.1
                 CL_DEVICE_MAX_COMPUTE_UNITS:                   4
                 CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:            3
                         CL_DEVICE_MAX_WORK_ITEM_SIZES[0]:      1024
                         CL_DEVICE_MAX_WORK_ITEM_SIZES[1]:      1024
                         CL_DEVICE_MAX_WORK_ITEM_SIZES[2]:      1024
                 CL_DEVICE_MAX_WORK_GROUP_SIZE:                 1024
                 CL_DEVICE_MAX_CLOCK_FREQUENCY:                 500 MHz
                 CL_DEVICE_IMAGE_SUPPORT:                       Yes
                         CL_DEVICE_MAX_READ_IMAGE_ARGS:         8
                         CL_DEVICE_MAX_WRITE_IMAGE_ARGS:        8
                         CL_DEVICE_IMAGE2D_MAX_WIDTH:           8192
                         CL_DEVICE_IMAGE2D_MAX_HEIGHT:          8192
                         CL_DEVICE_IMAGE3D_MAX_WIDTH:           0
                         CL_DEVICE_IMAGE3D_MAX_HEIGHT:          0
                         CL_DEVICE_IMAGE3D_MAX_DEPTH:           0
                         CL_DEVICE_MAX_SAMPLERS:                8

0 Kudos

636 Views
joanxie
NXP TechSupport
NXP TechSupport

maybe you can tell me what bsp version you use?  I can check the gpu, as I known, the latest version improve the performance.

0 Kudos

636 Views
chenghaibo
Contributor III

thank you very much, the bsp version is 3.14.52-r0

0 Kudos