Distributed compiling method and system, master server and storage medium

A technology of main server and compiling method, which is applied in the field of system, distributed compiling method, main server and storage medium, and can solve problems such as slow compiling speed

Pending Publication Date: 2022-01-04
上海米哈游海渊城科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a distributed compiling metho...

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
  • Distributed compiling method and system, master server and storage medium
  • Distributed compiling method and system, master server and storage medium
  • Distributed compiling method and system, master server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a flow chart of a distributed compiling method provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of distributed compilation, especially to the situation of distributed compilation by working compilers in the target network (ie remote). The method can be executed by the distributed compiling system provided by the embodiment of the present invention, and the system includes an engine editor and a distributed compiling module integrated on the main server.

[0031] see figure 1 , the method of the embodiment of the present invention specifically includes the following steps:

[0032] S110. After receiving the compilation task, the engine editor sends the startup task and startup parameters corresponding to the compilation task to the distributed compilation module.

[0033] Wherein, the engine editor may be an editor (Editor) in an engine that has the functions of editing, managing and sorting various reso...

Embodiment 2

[0046] figure 2 It is a flowchart of a distributed compiling method provided in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned technical solutions. In this embodiment, optionally, determining the working server from the candidate servers in the target network that can communicate with the engine editor may include: determining the number of working compilers that need to be started, and the target network The available computing resources of each candidate server that can communicate with the engine editor; according to the number of startups and each available computing resource, determine the working server from each candidate server. Wherein, explanations of terms that are the same as or corresponding to the above embodiments are not repeated here.

[0047] see figure 2 , the method of this embodiment may specifically include the following steps:

[0048] S210. After receiving the compilation task, the engine ed...

Embodiment 3

[0055] image 3 It is a flowchart of a distributed compiling method provided in Embodiment 3 of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the working compiler and the engine editor are connected through a socket interface; the engine editor sends the compilation task to the Successfully connected to the job compiler, so that the job compiler compiles according to the received compilation task, which can include: The engine editor sends the compilation task to the successfully connected job compiler through the socket interface, so that the job The compiler compiles according to the received compilation task. Wherein, explanations of terms that are the same as or corresponding to the above embodiments are not repeated here.

[0056] see image 3 , the method of this embodiment may specifically include the following steps:

[0057] S310. After receiving the compilation task, the engin...

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 embodiment of the invention discloses a distributed compiling method and system, a main server and a storage medium. The method is applied to a main server deployed with an engine editor and a distributed compiling module, and comprises the steps that after the engine editor receives a compiling task, a starting task and starting parameters corresponding to the compiling task are sent to the distributed compiling module; the distributed compiling module determines a working server from candidate servers which can be in communication connection with the engine editor in a target network according to the received starting task, starts a working compiler deployed on the working server, transmits received starting parameters to the working compiler in an unvarnished manner, and sends the starting parameters to the working compiler; the work compiler is connected to the engine editor according to the starting parameters; and the engine editor sends the compiling task to the work compiler which is successfully connected to the engine editor, so that the work compiler compiles according to the received compiling task. According to the technical scheme, the compiling speed can be increased.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a distributed compiling method, system, main server and storage medium. Background technique [0002] Currently, when packaging or running a game based on Unity3D, the engine editor will compile shaders. When compiling more Shaders, the engine editor can start multiple compilers (compilers) on the main server where it is located to compile Shaders respectively. [0003] In the process of realizing the present invention, the inventor finds that the following technical problems exist in the prior art: the compiler will take up a large amount of central processing unit (Central Processing Unit, CPU) resources when compiling, which causes the CPU of the main server to be often fully loaded Work, at this time the compilation speed has also reached the bottleneck. Contents of the invention [0004] The embodiment of the present invention provides a d...

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
IPC IPC(8): G06F8/41G06F9/445
CPCG06F8/41G06F9/44505
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