WO2018157376A1 - Method and device for controlling drawing operation, and gaming machine - Google Patents

Method and device for controlling drawing operation, and gaming machine Download PDF

Info

Publication number
WO2018157376A1
WO2018157376A1 PCT/CN2017/075557 CN2017075557W WO2018157376A1 WO 2018157376 A1 WO2018157376 A1 WO 2018157376A1 CN 2017075557 W CN2017075557 W CN 2017075557W WO 2018157376 A1 WO2018157376 A1 WO 2018157376A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
interface
game
drawing operation
boolean
Prior art date
Application number
PCT/CN2017/075557
Other languages
French (fr)
Chinese (zh)
Inventor
季辉
Original Assignee
小天才科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小天才科技有限公司 filed Critical 小天才科技有限公司
Priority to PCT/CN2017/075557 priority Critical patent/WO2018157376A1/en
Publication of WO2018157376A1 publication Critical patent/WO2018157376A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Definitions

  • the invention belongs to the technical field of computers, and in particular relates to a control method, device and game machine for drawing operation.
  • the frame rate of the game is generally set to 60 frames, that is, 60 times of logic is processed every second, and 60 times of pictures are refreshed every second, so that the human eye can not recognize the frame skipping phenomenon. This is a very power-hungry job, so when the player is playing the game, the power consumption of the game console or the electronic device in which the game is installed is very fast.
  • the scene of the game contains nodes, and the nodes display pictures or animations.
  • animation is also a sequence of pictures played continuously. So in fact, the game draws pictures.
  • adding nodes, moving nodes, zooming nodes, displaying nodes, removing nodes, playing animations the corresponding changes of the nodes will be reflected when the screen is refreshed, thus forming a dynamic game.
  • the embodiment of the present invention provides a control method, a device, and a game machine for drawing operations, so as to solve the game machine provided by the prior art, when no node needs to be updated in the game screen, the drawing operation is performed, not only It will reduce the efficiency of the game machine's execution, and will increase the power consumption of the game machine, while protecting the interests of the patent (applicant) right holder.
  • a method of controlling a drawing operation comprising:
  • determining whether the node needs to be updated in the game screen comprises:
  • the interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  • the method further includes:
  • Step A setting the value of the Boolean variable to a first Boolean value
  • performing a drawing operation after the logic processing ends includes:
  • the value of the updated Boolean variable is the second Boolean value
  • step A If yes, perform a drawing operation and return to step A.
  • the method further includes:
  • Boolean variable that is a global Boolean variable.
  • a control device for drawing operation comprising:
  • a node update judging module configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game
  • a drawing operation control module configured to perform a drawing operation after the logic processing of the game ends, if the node update determining module determines that a node in the game screen needs to be updated, otherwise the drawing operation is not performed after the logic processing of the game ends;
  • a patent information push module for pushing patent information to a user.
  • the node update determining module includes:
  • a node update judging unit configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
  • the interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  • the device further includes:
  • a Boolean setting module for setting a value of a Boolean variable to a first Boolean value
  • the drawing operation control module includes:
  • a Boolean value updating unit configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
  • a Boolean value determining unit configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
  • the drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
  • the device further includes:
  • a Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
  • a gaming machine comprising the drawing operation of the second aspect
  • the game machine is a smartphone or a tablet.
  • a drawing operation is performed, and when there is no node in the game screen to be updated, the drawing operation is not performed, and some games that do not need to continue the node update may be performed.
  • the refresh rate of the interface is reduced, thereby improving the execution efficiency of the game machine, while reducing the power consumption of the game machine, and at the same time protecting the interests of the patent (application) right holder.
  • FIG. 1 is a flow chart showing an implementation of a method for controlling a drawing operation of the present invention
  • Figure 2 is a block diagram showing the structure of an embodiment of a control device for drawing operation of the present invention
  • FIG. 3 is a block diagram showing the structure of an embodiment of the gaming machine of the present invention.
  • FIG. 1 is a flowchart showing an implementation process of a control method for a drawing operation according to Embodiment 1 of the present invention, which is described in detail as follows:
  • step S101 when the logic processing of the game is performed, it is determined whether or not there is a node in the game screen that needs to be updated. If there is a node that needs to be updated, step S102 is performed, otherwise, the drawing operation is not performed after the logical processing of the game ends.
  • the game runs 60 times per second, and performs two steps in each running process.
  • Step 1. Perform logical processing of the game, such as calculating the current position according to the speed of the node; 2. Perform the drawing operation, and draw according to the position, zoom, color information, etc. of the node. The information is obtained in the logic processing performed in step 1.
  • the interface of the following update node is called when the logic processing of the game is performed, it means that there is a node in the game screen that needs to be updated.
  • the interface of the update node is as follows:
  • the standard of animation is 24 frames per second, and the refresh rate of the game is 60 frames per second, so the animation is not played every frame. (24 frames per second, that is, the interval of playback is 1/24 second, the interval of drawing of the interface is 1/60 second. The animation is played once every 2.5 times of drawing, so the animation is not played every frame).
  • step S102 a drawing operation is performed after the logical processing of the game ends, while the patent information is pushed to the user.
  • a Boolean variable needUpdate may be defined in advance, and the value of the Boolean variable needUpdate is set to a first Boolean value.
  • the Boolean variable needUpdate is defined in the global region, so that the defined Boolean variable needUpdate is a global Boolean variable, and the Boolean variable needUpdate can be used anywhere in the program.
  • the value of the Boolean variable needUpdate may be updated to a second Boolean value; otherwise, the value of the Boolean variable needUpdate is still the first Boolean value.
  • the value of the Boolean variable is the second Boolean value. If the value of the Boolean variable is the second Boolean value, a drawing operation is performed, and the value of the set Boolean variable needUpdate is returned to the first value. Boolean value; otherwise no drawing operation is performed.
  • the patent information includes, but is not limited to, the status of the patent application of the technology, the patent application/right holder of the technology, the patent application number of the technology, the patent application date, and the like.
  • the patent information is editable, and can be dynamically pushed to the user according to the authorization of the patent application: the patent is being applied for, the patent authorization has been obtained, and the like.
  • the patent information is editable and can be dynamically pushed to the user according to the transfer of the patent application right/patent right: the current relevant right holder of the patent.
  • the pushing manner of the patent information may adopt a small frame display, a voice display, and the like, so that the user can perceive the push mode.
  • a drawing operation is performed, and when there is no node in the game screen to be updated, the drawing operation is not performed, and some interfaces of the game that do not need to continuously update the node may be provided.
  • the refresh rate is reduced, thereby improving the execution efficiency of the game machine, while reducing the power consumption of the game machine, and at the same time protecting the interests of the patent (application) right holder.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the embodiment of the present invention. Form any limit.
  • FIG. 2 is a block diagram showing a specific structure of a control device for drawing operation according to Embodiment 2 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the control device 2 of the drawing operation may be a software unit, a hardware unit or a combination of software and hardware built in the game machine.
  • the control device 2 of the drawing operation includes: a node update determination module 21 and a drawing operation control module 22, and patent information. Push module 23.
  • the node update determining module 21 is configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
  • the drawing operation control module 22 is configured to: if the node update determination module determines that a node in the game screen needs to be updated, perform a drawing operation after the logic processing of the game ends; otherwise, the drawing operation is not performed after the logic processing of the game ends;
  • the patent information pushing module 23 is configured to push patent information to the user.
  • the node update determining module 21 includes:
  • a node update judging unit configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
  • the interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  • the device 2 further includes:
  • a Boolean setting module for setting a value of a Boolean variable to a first Boolean value
  • the drawing operation control module 22 includes:
  • a Boolean value updating unit configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
  • a Boolean value determining unit configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
  • the drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
  • the device 2 further includes:
  • a Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
  • control device of the drawing operation provided by the embodiment of the present invention can be applied to the foregoing corresponding method embodiment 1.
  • details refer to the description of the first embodiment, and details are not described herein again.
  • FIG. 3 is a block diagram showing a specific structure of a gaming machine according to Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the game machine may be a smart phone or a tablet computer, including the control device 2 of the drawing operation described in the second embodiment.
  • the control device 2 of the drawing operation includes a node update determination module 21 and a drawing operation control module 22.
  • the node update determining module 21 is configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
  • the drawing operation control module 22 is configured to perform a drawing operation after the logic processing of the game ends after the node update determining module determines that there is a node in the game screen that needs to be updated, otherwise the drawing operation is not performed after the logic processing of the game ends.
  • the node update determining module 21 includes:
  • a node update judging unit configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
  • the interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  • the device 2 further includes:
  • a Boolean setting module for setting a value of a Boolean variable to a first Boolean value
  • the drawing operation control module 22 includes:
  • a Boolean value updating unit configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
  • a Boolean value determining unit configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
  • the drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
  • the device 2 further includes:
  • a Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
  • the game machine provided by the embodiment of the present invention can be applied to the foregoing corresponding method embodiment 1.
  • the game machine provided by the embodiment of the present invention can be applied to the foregoing corresponding method embodiment 1.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Display Devices Of Pinball Game Machines (AREA)

Abstract

A method and device for controlling a drawing operation, and a gaming machine. The method comprises: when performing logic processing for a game, determining whether any node in a game screen needs to be refreshed; if a node needs to be refreshed, executing a single instance of a drawing operation when the logic processing for the game is completed, and pushing patent information to a user; if not, executing no drawing operation when the logic processing for the game is completed. When a node in a gaming screen needs to be refreshed, a single instance of a drawing operation is executed; when no node in the gaming screen needs to be refreshed, no drawing operation is executed; this reduces the refresh rate for an interface of a game for which continuous node refreshing is not required, thus increasing the execution efficiency of a gaming machine, also reducing the power consumption of the gaming machine, and safeguarding the interests of the patentee (applicant).

Description

一种绘图操作的控制方法、装置及游戏机  Control method, device and game machine for drawing operation 技术领域Technical field
本发明属于计算机技术领域,尤其涉及一种绘图操作的控制方法、装置及游戏机。The invention belongs to the technical field of computers, and in particular relates to a control method, device and game machine for drawing operation.
背景技术Background technique
游戏中,为了让画面显得更加流畅,一般会将游戏的帧率设置为60帧,即每秒钟处理60次逻辑,每秒钟刷新60次画面,这样人眼就会分辨不出跳帧现象,这是一项很消耗电量的工作,所以在玩家玩游戏的时候,游戏机或者安装游戏的电子设备的电量消耗的非常快。In the game, in order to make the picture appear more smooth, the frame rate of the game is generally set to 60 frames, that is, 60 times of logic is processed every second, and 60 times of pictures are refreshed every second, so that the human eye can not recognize the frame skipping phenomenon. This is a very power-hungry job, so when the player is playing the game, the power consumption of the game console or the electronic device in which the game is installed is very fast.
游戏的场景中包含的是节点,节点显示的是图片或者动画。其实动画也是一个序列的图片连续播放。所以实际上游戏绘制的都是图片。当添加节点、移动节点、缩放节点、显示节点、移除节点、播放动画,画面上刷新的时候节点相应的修改就会体现出来,这样就形成了一个动态的游戏。The scene of the game contains nodes, and the nodes display pictures or animations. In fact, animation is also a sequence of pictures played continuously. So in fact, the game draws pictures. When adding nodes, moving nodes, zooming nodes, displaying nodes, removing nodes, playing animations, the corresponding changes of the nodes will be reflected when the screen is refreshed, thus forming a dynamic game.
然而,在实现本发明过程中,发明人发现现有技术提供的游戏机至少存在如下问题:However, in the process of implementing the present invention, the inventors have found that the gaming machine provided by the prior art has at least the following problems:
当游戏画面中没有节点需要更新的时候,还是会执行绘图操作,不仅会降低游戏机的执行效率,还会增加游戏机的耗电量。When there are no nodes in the game screen that need to be updated, the drawing operation will still be performed, which not only reduces the execution efficiency of the gaming machine, but also increases the power consumption of the gaming machine.
同时,知识产权在现在的产品和服务中越来越重要,其中主要包括著作权(版权)、商标权和专利权,这三种权利都能为权利人带来巨大的经济价值。At the same time, intellectual property is becoming more and more important in current products and services, including copyright (copyright), trademark and patent rights, all of which can bring enormous economic value to rights holders.
但与著作权、商标权不同的是,专利权的权利归属比较难以为用户所认识和辨别。比如:一个培训教材或者一部电影里面,会明确的将“版权归特定人所有”的字样告知给用户;商标也以其显著的字或图的特征,在与其他标样区别的同时,也代表着商标权人以及商标权人生产的相关产品。但专利则不然,除了如“滑动解锁”等有限几个专利外,用户很难看到某一专利就知道该专利的申请/权利人。However, unlike copyright and trademark rights, the ownership of patent rights is more difficult to recognize and discern. For example, in a training material or a movie, the words “copyright belongs to a specific person” will be clearly notified to the user; the trademark is also distinguished from other standards by its distinctive words or figures. Represents the related products produced by the trademark owner and the trademark owner. However, patents are not. Apart from a limited number of patents such as “slide and unlock”, it is difficult for a user to see a patent and know the application/right holder of the patent.
这种情况所带来的严重后果是:The serious consequences of this situation are:
1、专利权的保护难度大,一项好的技术出来后,马上就被复制;1. The protection of patent rights is difficult. Once a good technology comes out, it will be copied immediately;
2、专利权/申请人通过专利彰显自己的产品特色的效果差,因为用户也分不清楚某一技术与专利权/申请人的联系。2. The patent/applicant's effect of showing its own product features through patents is poor, because the user is also unclear about the connection between a certain technology and the patent/applicant.
综上,为充分保护本人的专利申请,让该本人的专利申请价值最大化,特提出一个解决办法。In summary, in order to fully protect my patent application and maximize the value of my patent application, a solution is proposed.
技术问题technical problem
有鉴于此,本发明实施例提供一种绘图操作的控制方法、装置及游戏机,以解决现有技术提供的游戏机,当游戏画面中没有节点需要更新的时候,还是会执行绘图操作,不仅会降低游戏机的执行效率,还会增加游戏机的耗电量的问题,并同时保护专利(申请)权人的利益。In view of this, the embodiment of the present invention provides a control method, a device, and a game machine for drawing operations, so as to solve the game machine provided by the prior art, when no node needs to be updated in the game screen, the drawing operation is performed, not only It will reduce the efficiency of the game machine's execution, and will increase the power consumption of the game machine, while protecting the interests of the patent (applicant) right holder.
技术解决方案Technical solution
第一方面,提供一种绘图操作的控制方法,所述方法包括:In a first aspect, a method of controlling a drawing operation is provided, the method comprising:
在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;When performing logical processing of the game, it is determined whether there is a node in the game screen that needs to be updated;
如果有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,同时向用户推送专利信息,否则在游戏的逻辑处理结束后不执行绘图操作。If there is a node that needs to be updated, a drawing operation is performed after the logical processing of the game ends, and the patent information is pushed to the user, otherwise the drawing operation is not performed after the logical processing of the game ends.
进一步地,所述判断游戏画面中是否有节点需要更新包括:Further, determining whether the node needs to be updated in the game screen comprises:
如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;If the interface of the following update node is called when the logic processing of the game is performed, it means that there are nodes in the game screen that need to be updated;
所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
进一步地,在所述在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新之前,还包括: Further, before the determining whether the node needs to be updated in the game screen during the logic processing of the game, the method further includes:
步骤A、设置布尔型变量的值为第一布尔值; Step A: setting the value of the Boolean variable to a first Boolean value;
所述如果有节点需要更新,则在逻辑处理结束后执行一次绘图操作包括:If the node needs to be updated, performing a drawing operation after the logic processing ends includes:
如果有节点需要更新,则更新布尔型变量的值为第二布尔值;If there is a node that needs to be updated, the value of the updated Boolean variable is the second Boolean value;
在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;After the logic processing ends, it is determined whether the value of the Boolean variable is a second Boolean value;
如果是,则执行一次绘图操作,并返回执行步骤A。If yes, perform a drawing operation and return to step A.
进一步地,在所述步骤A之前,还包括:Further, before the step A, the method further includes:
定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。Define a Boolean variable that is a global Boolean variable.
第二方面,提供一种绘图操作的控制装置,所述装置包括:In a second aspect, a control device for drawing operation is provided, the device comprising:
节点更新判断模块,用于在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;a node update judging module, configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
绘图操作控制模块,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作;a drawing operation control module, configured to perform a drawing operation after the logic processing of the game ends, if the node update determining module determines that a node in the game screen needs to be updated, otherwise the drawing operation is not performed after the logic processing of the game ends;
专利信息推送模块,用于向用户推送专利信息。A patent information push module for pushing patent information to a user.
进一步地,所述节点更新判断模块包括:Further, the node update determining module includes:
节点更新判断单元,用于如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;a node update judging unit, configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
进一步地,所述装置还包括:Further, the device further includes:
布尔值设置模块,用于设置布尔型变量的值为第一布尔值; A Boolean setting module for setting a value of a Boolean variable to a first Boolean value;
所述绘图操作控制模块包括:The drawing operation control module includes:
布尔值更新单元,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则更新布尔型变量的值为第二布尔值;a Boolean value updating unit, configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
布尔值判断单元,用于在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;a Boolean value determining unit, configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
绘图操作控制单元,用于如果布尔变量的值为第二布尔值,则执行一次绘图操作,并返回调用布尔值设置模块。The drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
进一步地,所述装置还包括:Further, the device further includes:
布尔型变量定义模块,用于定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。A Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
第三方面,提供一种游戏机,所述游戏机包括第二方面所述的绘图操作的In a third aspect, a gaming machine is provided, the gaming machine comprising the drawing operation of the second aspect
控制装置。Control device.
进一步地,所述游戏机为智能手机或平板电脑。Further, the game machine is a smartphone or a tablet.
有益效果Beneficial effect
在本发明实施例,当游戏画面中有节点需要更新的时候,执行一次绘图操作,而当游戏画面中没有节点需要更新的时候,不执行绘图操作,可以让一些不需要持续进行节点更新的游戏的界面刷新频率下降,从而提高游戏机的执行效率,同时减少游戏机的电量消耗,并同时保护专利(申请)权人的利益。In the embodiment of the present invention, when a node in the game screen needs to be updated, a drawing operation is performed, and when there is no node in the game screen to be updated, the drawing operation is not performed, and some games that do not need to continue the node update may be performed. The refresh rate of the interface is reduced, thereby improving the execution efficiency of the game machine, while reducing the power consumption of the game machine, and at the same time protecting the interests of the patent (application) right holder.
附图说明DRAWINGS
图1是本发明绘图操作的控制方法实施例的实现流程图;1 is a flow chart showing an implementation of a method for controlling a drawing operation of the present invention;
图2是本发明绘图操作的控制装置实施例的结构框图;Figure 2 is a block diagram showing the structure of an embodiment of a control device for drawing operation of the present invention;
图3是本发明游戏机实施例的结构框图。3 is a block diagram showing the structure of an embodiment of the gaming machine of the present invention.
本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在本发明实施例中,在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;如果有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作。In the embodiment of the present invention, when performing logic processing of the game, it is determined whether there is a node in the game screen that needs to be updated; if there is a node that needs to be updated, a drawing operation is performed after the logic processing of the game ends, otherwise the logic processing in the game is performed. The drawing operation is not performed after the end.
以下结合具体实施例对本发明的实现进行详细描述:The implementation of the present invention is described in detail below with reference to specific embodiments:
实施例一Embodiment 1
图1示出了本发明实施例一提供的绘图操作的控制方法的实现流程,详述如下:FIG. 1 is a flowchart showing an implementation process of a control method for a drawing operation according to Embodiment 1 of the present invention, which is described in detail as follows:
在步骤S101中,在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新,如果有节点需要更新,则执行步骤S102,否则在游戏的逻辑处理结束后不执行绘图操作。In step S101, when the logic processing of the game is performed, it is determined whether or not there is a node in the game screen that needs to be updated. If there is a node that needs to be updated, step S102 is performed, otherwise, the drawing operation is not performed after the logical processing of the game ends.
在本发明实施例中,游戏每秒钟运行60次,每次运行的过程中进行两步操作,步骤1、进行游戏的逻辑处理,如根据节点的速度计算出当前应该处在什么位置;步骤2、执行绘图操作,需要根据节点的位置、缩放、颜色信息等进行绘图,这些信息是在步骤1进行的逻辑处理中得到的。In the embodiment of the present invention, the game runs 60 times per second, and performs two steps in each running process. Step 1. Perform logical processing of the game, such as calculating the current position according to the speed of the node; 2. Perform the drawing operation, and draw according to the position, zoom, color information, etc. of the node. The information is obtained in the logic processing performed in step 1.
具体的,如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新。Specifically, if the interface of the following update node is called when the logic processing of the game is performed, it means that there is a node in the game screen that needs to be updated.
其中,更新节点的接口如下:Among them, the interface of the update node is as follows:
a:添加节点接口(addChild)a: add node interface (addChild)
b:移除节点接口(removeChild)b: remove the node interface (removeChild)
c:改变节点的位置接口(setPosition)c: change the position interface of the node (setPosition)
d:改变节点的颜色接口(setColor)d: change the color interface of the node (setColor)
e:改变节点的缩放接口(setScale)e: change the node's zoom interface (setScale)
f:改变节点的反转接口(setSkew)f: change the node's inversion interface (setSkew)
g:改变节点的透明度接口(setOpacity)g: change the transparency interface of the node (setOpacity)
h:改变节点的图片接口(initWithFile)h: change the node's image interface (initWithFile)
i:播放动画接口。i: Play the animation interface.
其中,动画的标准是24帧每秒,而游戏的刷新频率是60帧每秒,所以动画不是每一帧都在播放的。(24帧每秒,即播放的间隔是1/24秒,界面的绘图的间隔1/60秒。平均每绘图2.5次才播放一次动画,所以动画不是每一帧都会播放)。Among them, the standard of animation is 24 frames per second, and the refresh rate of the game is 60 frames per second, so the animation is not played every frame. (24 frames per second, that is, the interval of playback is 1/24 second, the interval of drawing of the interface is 1/60 second. The animation is played once every 2.5 times of drawing, so the animation is not played every frame).
在步骤S102中,在游戏的逻辑处理结束后执行一次绘图操作,同时向用户推送专利信息。In step S102, a drawing operation is performed after the logical processing of the game ends, while the patent information is pushed to the user.
在本发明实施例中,在进行游戏的逻辑处理时,如果确定游戏画面中有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作。In the embodiment of the present invention, when performing logic processing of the game, if it is determined that there is a node in the game screen that needs to be updated, a drawing operation is performed after the logic processing of the game ends, otherwise the drawing operation is not performed after the logic processing of the game ends. .
具体的,可以预先定义一个布尔型变量needUpdate,并设置布尔型变量needUpdate的值为第一布尔值。其中,在全局的区域内定义布尔型变量needUpdate,使得定义得到的布尔型变量needUpdate为全局的布尔型变量,在程序的任何地方都可以使用该布尔型变量needUpdate。Specifically, a Boolean variable needUpdate may be defined in advance, and the value of the Boolean variable needUpdate is set to a first Boolean value. Among them, the Boolean variable needUpdate is defined in the global region, so that the defined Boolean variable needUpdate is a global Boolean variable, and the Boolean variable needUpdate can be used anywhere in the program.
在进行游戏的逻辑处理时,当判定游戏画面中有节点需要更新时,可以更新布尔型变量needUpdate的值为第二布尔值,否则,布尔型变量needUpdate的值仍然为第一布尔值。When the logic processing of the game is performed, when it is determined that there is a node in the game screen that needs to be updated, the value of the Boolean variable needUpdate may be updated to a second Boolean value; otherwise, the value of the Boolean variable needUpdate is still the first Boolean value.
其中,第一布尔值为false时,第二布尔值为true;第一布尔值为true时,第二布尔值为false。Wherein, when the first boolean value is false, the second boolean value is true; when the first boolean value is true, the second boolean value is false.
在游戏的逻辑处理结束后,可以判断布尔变量的值是否为第二布尔值,如果布尔变量的值为第二布尔值,则执行一次绘图操作,并返回设置布尔型变量needUpdate的值为第一布尔值;否则不执行绘图操作。After the logic processing of the game is finished, it can be determined whether the value of the Boolean variable is the second Boolean value. If the value of the Boolean variable is the second Boolean value, a drawing operation is performed, and the value of the set Boolean variable needUpdate is returned to the first value. Boolean value; otherwise no drawing operation is performed.
所述专利信息包括但不限于:该技术的专利申请状态,该技术的专利申请/权利人、该技术的专利申请号、专利申请日等信息。The patent information includes, but is not limited to, the status of the patent application of the technology, the patent application/right holder of the technology, the patent application number of the technology, the patent application date, and the like.
所述专利信息是可编辑的,可以根据专利申请的授权与否,向用户动态推送:正在申请专利、已获得专利授权等信息。The patent information is editable, and can be dynamically pushed to the user according to the authorization of the patent application: the patent is being applied for, the patent authorization has been obtained, and the like.
所述专利信息是可编辑的,可以根据专利申请权/专利权的转让情况,向用户动态推送:该专利的当前相关的权利人。The patent information is editable and can be dynamically pushed to the user according to the transfer of the patent application right/patent right: the current relevant right holder of the patent.
所述专利信息的推送方式,可以采取小框显示、语音显示等让用户能够感知的推送方式。The pushing manner of the patent information may adopt a small frame display, a voice display, and the like, so that the user can perceive the push mode.
本实施例,当游戏画面中有节点需要更新的时候,执行一次绘图操作,而当游戏画面中没有节点需要更新的时候,不执行绘图操作,可以让一些不需要持续进行节点更新的游戏的界面刷新频率下降,从而提高游戏机的执行效率,同时减少游戏机的电量消耗,并同时保护专利(申请)权人的利益。In this embodiment, when a node in the game screen needs to be updated, a drawing operation is performed, and when there is no node in the game screen to be updated, the drawing operation is not performed, and some interfaces of the game that do not need to continuously update the node may be provided. The refresh rate is reduced, thereby improving the execution efficiency of the game machine, while reducing the power consumption of the game machine, and at the same time protecting the interests of the patent (application) right holder.
应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in the embodiment of the present invention, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the embodiment of the present invention. Form any limit.
本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of implementing the foregoing embodiments can be completed by a program to instruct related hardware, and the corresponding program can be stored in a computer readable storage medium, the storage. Media, such as ROM/RAM, disk or CD.
实施例二Embodiment 2
图2示出了本发明实施例二提供的绘图操作的控制装置的具体结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。该绘图操作的控制装置2可以是内置于游戏机中的软件单元、硬件单元或者软硬件结合的单元,该绘图操作的控制装置2包括:节点更新判断模块21和绘图操作控制模块22,专利信息推送模块23。FIG. 2 is a block diagram showing a specific structure of a control device for drawing operation according to Embodiment 2 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The control device 2 of the drawing operation may be a software unit, a hardware unit or a combination of software and hardware built in the game machine. The control device 2 of the drawing operation includes: a node update determination module 21 and a drawing operation control module 22, and patent information. Push module 23.
其中,节点更新判断模块21,用于在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;The node update determining module 21 is configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
绘图操作控制模块22,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作;The drawing operation control module 22 is configured to: if the node update determination module determines that a node in the game screen needs to be updated, perform a drawing operation after the logic processing of the game ends; otherwise, the drawing operation is not performed after the logic processing of the game ends;
专利信息推送模块23,用于向用户推送专利信息。The patent information pushing module 23 is configured to push patent information to the user.
具体的,所述节点更新判断模块21包括:Specifically, the node update determining module 21 includes:
节点更新判断单元,用于如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;a node update judging unit, configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
进一步地,所述装置2还包括: Further, the device 2 further includes:
布尔值设置模块,用于设置布尔型变量的值为第一布尔值; A Boolean setting module for setting a value of a Boolean variable to a first Boolean value;
所述绘图操作控制模块22包括:The drawing operation control module 22 includes:
布尔值更新单元,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则更新布尔型变量的值为第二布尔值;a Boolean value updating unit, configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
布尔值判断单元,用于在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;a Boolean value determining unit, configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
绘图操作控制单元,用于如果布尔变量的值为第二布尔值,则执行一次绘图操作,并返回调用布尔值设置模块。The drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
进一步地,所述装置2还包括:Further, the device 2 further includes:
布尔型变量定义模块,用于定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。A Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
本发明实施例提供的绘图操作的控制装置可以应用在前述对应的方法实施例一中,详情参见上述实施例一的描述,在此不再赘述。The control device of the drawing operation provided by the embodiment of the present invention can be applied to the foregoing corresponding method embodiment 1. For details, refer to the description of the first embodiment, and details are not described herein again.
实施例三Embodiment 3
图3示出了本发明实施例三提供的游戏机的具体结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。该游戏机可以为智能手机或平板电脑,包括实施例二中所述的绘图操作的控制装置2,该绘图操作的控制装置2包括:节点更新判断模块21和绘图操作控制模块22。FIG. 3 is a block diagram showing a specific structure of a gaming machine according to Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The game machine may be a smart phone or a tablet computer, including the control device 2 of the drawing operation described in the second embodiment. The control device 2 of the drawing operation includes a node update determination module 21 and a drawing operation control module 22.
其中,节点更新判断模块21,用于在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;The node update determining module 21 is configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
绘图操作控制模块22,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作。The drawing operation control module 22 is configured to perform a drawing operation after the logic processing of the game ends after the node update determining module determines that there is a node in the game screen that needs to be updated, otherwise the drawing operation is not performed after the logic processing of the game ends.
具体的,所述节点更新判断模块21包括:Specifically, the node update determining module 21 includes:
节点更新判断单元,用于如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;a node update judging unit, configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
进一步地,所述装置2还包括: Further, the device 2 further includes:
布尔值设置模块,用于设置布尔型变量的值为第一布尔值; A Boolean setting module for setting a value of a Boolean variable to a first Boolean value;
所述绘图操作控制模块22包括:The drawing operation control module 22 includes:
布尔值更新单元,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则更新布尔型变量的值为第二布尔值;a Boolean value updating unit, configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
布尔值判断单元,用于在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;a Boolean value determining unit, configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
绘图操作控制单元,用于如果布尔变量的值为第二布尔值,则执行一次绘图操作,并返回调用布尔值设置模块。The drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
进一步地,所述装置2还包括:Further, the device 2 further includes:
布尔型变量定义模块,用于定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。 A Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
本发明实施例提供的游戏机可以应用在前述对应的方法实施例一中,详情参见上述实施例一的描述,在此不再赘述。The game machine provided by the embodiment of the present invention can be applied to the foregoing corresponding method embodiment 1. For details, refer to the description of the first embodiment, and details are not described herein again.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (10)

  1. 一种绘图操作的控制方法,其特征在于,所述方法包括: A control method for drawing operations, characterized in that the method comprises:
    在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;When performing logical processing of the game, it is determined whether there is a node in the game screen that needs to be updated;
    如果有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,同时向用户推送专利信息,否则在游戏的逻辑处理结束后不执行绘图操作。If there is a node that needs to be updated, a drawing operation is performed after the logical processing of the game ends, and the patent information is pushed to the user, otherwise the drawing operation is not performed after the logical processing of the game ends.
  2. 如权利要求1所述的方法,其特征在于,所述判断游戏画面中是否有节The method of claim 1 wherein said determining whether there is a section in the game screen
    点需要更新包括:Points need to be updated to include:
    如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;If the interface of the following update node is called when the logic processing of the game is performed, it means that there are nodes in the game screen that need to be updated;
    所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  3. 如权利要求1或2所述的方法,其特征在于,在所述在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新之前,还包括:The method according to claim 1 or 2, wherein, in the logic processing of the game, determining whether a node in the game screen needs to be updated, the method further comprises:
    步骤A、设置布尔型变量的值为第一布尔值; Step A: setting the value of the Boolean variable to a first Boolean value;
    所述如果有节点需要更新,则在逻辑处理结束后执行一次绘图操作包括:If the node needs to be updated, performing a drawing operation after the logic processing ends includes:
    如果有节点需要更新,则更新布尔型变量的值为第二布尔值;If there is a node that needs to be updated, the value of the updated Boolean variable is the second Boolean value;
    在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;After the logic processing ends, it is determined whether the value of the Boolean variable is a second Boolean value;
    如果是,则执行一次绘图操作,并返回执行步骤A。If yes, perform a drawing operation and return to step A.
  4. 如权利要求3所述的方法,其特征在于,在所述步骤A之前,还包括:The method of claim 3, before the step A, further comprising:
    定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。Define a Boolean variable that is a global Boolean variable.
  5. 一种绘图操作的控制装置,其特征在于,所述装置包括:A control device for drawing operation, characterized in that the device comprises:
    节点更新判断模块,用于在进行游戏的逻辑处理时,判断游戏画面中是否有节点需要更新;a node update judging module, configured to determine whether a node needs to be updated in the game screen when performing logic processing of the game;
    绘图操作控制模块,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则在游戏的逻辑处理结束后执行一次绘图操作,否则在游戏的逻辑处理结束后不执行绘图操作;a drawing operation control module, configured to perform a drawing operation after the logic processing of the game ends, if the node update determining module determines that a node in the game screen needs to be updated, otherwise the drawing operation is not performed after the logic processing of the game ends;
    专利信息推送模块,用于向用户推送专利信息。A patent information push module for pushing patent information to a user.
  6. 如权利要求5所述的装置,其特征在于,所述节点更新判断模块包括: The device of claim 5, wherein the node update determination module comprises:
    节点更新判断单元,用于如果在进行游戏的逻辑处理时,以下更新节点的接口只要有一个被调用,则表示游戏画面中有节点需要更新;a node update judging unit, configured to: if one of the interfaces of the following update node is called when the logic processing of the game is performed, it indicates that a node in the game screen needs to be updated;
    所述更新节点的接口包括:添加节点接口、移除节点接口、改变节点的位置接口、改变节点的颜色接口、改变节点的缩放接口、改变节点的反转接口、改变节点的透明度接口、改变节点的图片接口、播放动画接口。The interface of the update node includes: adding a node interface, removing a node interface, changing a node's location interface, changing a node's color interface, changing a node's zoom interface, changing a node's reverse interface, changing a node's transparency interface, changing a node Picture interface, play animation interface.
  7. 如权利要求5或6所述的装置,其特征在于,所述装置还包括:The device of claim 5 or claim 6, wherein the device further comprises:
    布尔值设置模块,用于设置布尔型变量的值为第一布尔值; A Boolean setting module for setting a value of a Boolean variable to a first Boolean value;
    所述绘图操作控制模块包括:The drawing operation control module includes:
    布尔值更新单元,用于如果节点更新判断模块判定游戏画面中有节点需要更新,则更新布尔型变量的值为第二布尔值;a Boolean value updating unit, configured to: if the node update judging module determines that a node in the game screen needs to be updated, update the value of the Boolean variable to a second Boolean value;
    布尔值判断单元,用于在逻辑处理结束后,判断布尔变量的值是否为第二布尔值;a Boolean value determining unit, configured to determine whether the value of the Boolean variable is a second Boolean value after the logic processing ends;
    绘图操作控制单元,用于如果布尔变量的值为第二布尔值,则执行一次绘图操作,并返回调用布尔值设置模块。The drawing operation control unit is configured to perform a drawing operation if the value of the Boolean variable is a second Boolean value, and return to call the Boolean value setting module.
  8. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    布尔型变量定义模块,用于定义一个布尔型变量,所述布尔型变量是全局的布尔型变量。A Boolean variable definition module that defines a Boolean variable that is a global Boolean variable.
  9. 一种游戏机,其特征在于,所述游戏机包括如权利要求5至8任一项所A gaming machine, characterized in that the gaming machine comprises any one of claims 5 to 8
    述的绘图操作的控制装置。The control device for the drawing operation.
  10. 如权利要求9所述的游戏机,其特征在于,所述游戏机为智能手机或平板电脑。 The gaming machine according to claim 9, wherein said gaming machine is a smartphone or a tablet.
PCT/CN2017/075557 2017-03-03 2017-03-03 Method and device for controlling drawing operation, and gaming machine WO2018157376A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075557 WO2018157376A1 (en) 2017-03-03 2017-03-03 Method and device for controlling drawing operation, and gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075557 WO2018157376A1 (en) 2017-03-03 2017-03-03 Method and device for controlling drawing operation, and gaming machine

Publications (1)

Publication Number Publication Date
WO2018157376A1 true WO2018157376A1 (en) 2018-09-07

Family

ID=63369741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075557 WO2018157376A1 (en) 2017-03-03 2017-03-03 Method and device for controlling drawing operation, and gaming machine

Country Status (1)

Country Link
WO (1) WO2018157376A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077015A (en) * 2012-12-25 2013-05-01 福州博远无线网络科技有限公司 Method for dynamically controlling frame rate of game
CN105005484A (en) * 2015-08-12 2015-10-28 北京触控科技有限公司 Event dispatching method of cross-platform game development tool
CN105138311A (en) * 2014-05-30 2015-12-09 广州市动景计算机科技有限公司 Method and device for improving graphic drawing efficiency
CN105786158A (en) * 2016-03-17 2016-07-20 小天才科技有限公司 Drawing operation control method and device and game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077015A (en) * 2012-12-25 2013-05-01 福州博远无线网络科技有限公司 Method for dynamically controlling frame rate of game
CN105138311A (en) * 2014-05-30 2015-12-09 广州市动景计算机科技有限公司 Method and device for improving graphic drawing efficiency
CN105005484A (en) * 2015-08-12 2015-10-28 北京触控科技有限公司 Event dispatching method of cross-platform game development tool
CN105786158A (en) * 2016-03-17 2016-07-20 小天才科技有限公司 Drawing operation control method and device and game machine

Similar Documents

Publication Publication Date Title
WO2017206456A1 (en) Method and apparatus for presenting video image in video call
WO2013111994A1 (en) Image processing method and apparatus for 3d video
WO2017157146A1 (en) User portrait-based personalized recommendation method and apparatus, server, and storage medium
WO2020207030A1 (en) Video encoding method, system and device, and computer-readable storage medium
WO2013083055A1 (en) Image processing method and system
WO2020226317A1 (en) Image processing apparatus and image processing method thereof
WO2018226021A1 (en) Method and apparatus for providing product placement
EP3529980A1 (en) Display apparatus and control method thereof
WO2016101441A1 (en) File synchronization method and system
WO2021029505A1 (en) Electronic apparatus and control method thereof
JP2015526780A (en) Media playback method and apparatus
WO2018161587A1 (en) Method and apparatus for controlling display of mobile terminal, storage medium, and electronic device
WO2019054611A1 (en) Electronic device and operation method therefor
WO2018161601A1 (en) Screen backlight adjusting method, device, storage medium and electronic device
WO2018053904A1 (en) Information processing method and terminal
WO2017034311A1 (en) Image processing device and method
WO2021107291A1 (en) Electronic apparatus and control method thereof
WO2018048117A1 (en) Display apparatus and control method thereof
WO2016024824A1 (en) Display apparatus and method of controlling the same
WO2018157376A1 (en) Method and device for controlling drawing operation, and gaming machine
WO2018034535A1 (en) Display apparatus and content display method thereof
WO2021107293A1 (en) Electronic apparatus and control method thereof
WO2015060685A1 (en) Electronic device and method of providing advertisement data by electronic device
WO2020138630A1 (en) Display apparatus and image processing method thereof
WO2023128656A1 (en) Display device and control method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17898675

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17898675

Country of ref document: EP

Kind code of ref document: A1