新手上路
- 积分
- 45
- 金钱
- 45
- 注册时间
- 2018-12-14
- 在线时间
- 14 小时
|

楼主 |
发表于 2019-1-8 09:36:08
|
显示全部楼层
你好,我经过优化后的刷屏速度在0.15s左右。最好不要使用LCDConf.c文件中提供的接口,而要使用GUIDRV_Template.c中提供的底层函数进行刷屏操作。我对GUIDRV_Template.c中的如下函数进行了优化:_SetPixelIndex(GUI_DEVICE * pDevice, int x, int y, int PixelIndex)、_GetPixelIndex(GUI_DEVICE * pDevice, int x, int y) 、_FillRect(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1) 、 _DrawBitLine32BPP(GUI_DEVICE * pDevice, int x, int y, U32 const GUI_UNI_PTR * p, int xsize)(我的LCD controller与screen之间的数据接口为24位,所以对这个函数进行优化)。优化时大多使用裸机LCD驱动函数(在未使用emwin的情况下写的lcd底层驱动)对上述几个函数进行优化。希望能够帮到你! |
|