Lua-based UILListView list control optimization method, system, equipment and medium

An optimization method and storage medium technology, applied in the direction of program control design, program control device, creation/generation of source code, etc., can solve the problems of slow loading speed of big data display, poor user interaction experience, large memory consumption, etc. The effect of reducing memory consumption, facilitating porting, and improving loading speed

Pending Publication Date: 2022-05-31
厦门游动网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a method, system, device and medium for optimizing a Lua-based UIListView list control, so as to at least solve the problem of low reuse of UIListView subitems and large memory consumption in the related art, and the list of gang members in the game, The loading speed of large data such as friend list and backpack is slow, which leads to the problem of poor user interaction experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Lua-based UILListView list control optimization method, system, equipment and medium
  • Lua-based UILListView list control optimization method, system, equipment and medium
  • Lua-based UILListView list control optimization method, system, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. In addition, it can also be understood that although such development efforts may be complex and lengthy, for those of ordinary skill in the art relevant to the content disclosed in this application, the technology disclosed in this application Some design, manufacturing or production changes based on the content are just conventional technical means, and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a Lua-based UILListView list control optimization method, system and device and a medium, and the method comprises the steps: obtaining the total number of preset subitems and the size of each subitem, creating an idle pool sub-queue and a use pool sub-queue, calculating the position of each subitem in a visual window according to the size of each subitem, and calculating the position of each subitem in the visual window according to the position of each subitem in the visual window; when it is detected that a subitem removal event occurs on the optimized UILListView list control, subitems moved out of a visual window are removed from a use pool subqueue, the subitems moved out of the visual window are added into an idle pool subqueue, the optimized UILListView list control is obtained by expanding a LuaTableView control to a native UILListView list control, and the UILListView list control is obtained by expanding the LuaTableView list control to the original UILListView list control. The LuaTableView control is generated by inheriting a parent class Widget through a UISSColView control on the basis of a Lua layer, and child item removal drawing operation is executed on the optimized UILListView list control, the problem that the parent class is not the Widget is solved, memory consumption is reduced, the method and the device are suitable for big data display of a helper member list, a friend list, a backpack and the like in a game, and great convenience is brought to business logic development and use.

Description

technical field [0001] The present application relates to the technical field of list controls, in particular to an optimization method, system, electronic device and storage medium of a Lua-based UIListView list control. Background technique [0002] The CocosStudio editor is an official game interface editor provided by the Cocos2dx engine for the convenience of users. UIListView is a list control in the CocosStudio editor. It is implemented by pure C++ code. The subitems are not reused, and the size of the subitems cannot be customized. CCTableView is an early built-in list control of the Cocos2dx engine. It is implemented with pure C++ code, and its child items can be reused. The size of the child items can be customized. The final parent class is also Node, but the engine officially encapsulates another Widget as the parent class on the basis of Node. For the controls of the CocosStudio editor series, the C++ keyword dynamic_cast is used to convert to Widget when obtai...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/34G06F9/445
CPCG06F8/31G06F8/34G06F9/44526
Inventor 伍仁堆
Owner 厦门游动网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products