Project

General

Profile

Feature #2858

ehmi加载SVM图画逻辑优化

Added by shixun yan over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
shixun yan
Target version:
Start date:
03/03/2023
Due date:
% Done:

100%

Estimated time:
Defect version:

Description

3.04版本南昌三号线,在切图的时候发现界面会卡顿4,5秒.
经查由于一次图里面有大量的Lua脚本函数setobjvisable(共200多个),此函数在图画加载的时候会往GWND类发送
自定义消息,在消息回调函数里面做刷新图元的动作,此操作阻塞了加载SVM图画的刷新动作.造成界面先出现3,4秒的
空白,然后才出现画面.基于此原因,我们在打开图画的时候做了一些优化处理.
1.对Lua脚本函数做了一些优化,做设置动作前,先判断老的状态是什么,如果是一致的,则跳过,不做处理.
2.在切图的时候,打开SVM图画时,不再对里面的图元做单个的刷新动作,而是等全部做完的时候,做一次整个图画的刷新.

History

#1

Updated by shixun yan over 1 year ago

  • Status changed from New to In Progress
#2

Updated by shixun yan over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF