This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

grlib delay problem in BB Black

Hi, I configured resolution of my display to 1024x768, but now, I'm trying to use the GRLIB to print two Rectangles, but print is very slow because I'm using a delay between the rectangles.
My code is:

DpyRectFill(&g_s35_1024x768x24Display, &backGround, ClrRed);
CacheDataCleanBuff(startAddr, numBytes );

delay(0x1FFFFFFF);

DpyRectFill(&g_s35_1024x768x24Display, &backGround, ClrBlue);
CacheDataCleanBuff(startAddr, numBytes );

When I comment the "delay" looks run very well, Someone can help me ? 

Thanks in advance.

  • Hi Matheus Vasconcelos,

    I assume you are using delay API from starterware. This API will generate a delay of specified milli-seconds. In the above code snippet the value provided to the delay API "0x1FFFFFFF" is significantly large delay value.

    This delay API should not affect grlib APIs except providing the required delay. Since the provided delay is huge, the above explained behaviour might have been observed.

    Regards,

    M.Jyothi Kiran

     

     

  • Hi Madana; let me try to explain what is happening.

    I migrated the GRLIBDemo example from evmskAM335x KIT to beagloBone Black, but the performance of GRLIB is terrible, I'm using some delays, but I think that this is not the problem, maybe some configuration of CACHE

    If someone knows about the implementation of GRLIB in beogle bone black, send me some help.

    Thanks in advance.