Item request has been placed! ×
Item request cannot be made. ×
loading  Processing Request

Cloud Technology-Based Graphics Program Online Development Method and System, and Related Device

Item request has been placed! ×
Item request cannot be made. ×
loading   Processing Request
  • Publication Date:
    September 19, 2024
  • معلومة اضافية
    • Document Number:
      20240311097
    • Appl. No:
      18/676837
    • Application Filed:
      May 29, 2024
    • نبذة مختصرة :
      A cloud technology-based graphics program online development method and system, and a related device are provided. The method includes the following steps: A cloud management platform receives a graphics program online development request input by a tenant, selects or creates a cloud instance for image rendering in a cloud instance resource pool, and sets a connection between the cloud instance and a client of the tenant (S410); the cloud instance receives graphics program code sent by the client, and compiles the graphics program code to generate a graphics program, where the graphics program code is input by the tenant to the client (S420); and the cloud instance runs the graphics program to render a graphic, and sends the graphic to the client for display (S430). In this way, a cloud technology-based graphics program online development requirement of the tenant is met, and user experience is improved.
    • Claim:
      1. A cloud technology-based graphics program online development method, comprising: receiving, by a cloud management platform, a graphics program online development request input by a tenant, selecting or creating a cloud instance for image rendering in a cloud instance resource pool, and setting a connection between the cloud instance and a client of the tenant; receiving, by the cloud instance, graphics program code sent by the client, and compiling the graphics program code to generate a graphics program, wherein the graphics program code is input by the tenant to the client; and running, by the cloud instance, the graphics program to render a graphic, and sending the graphic to the client for display.
    • Claim:
      2. The method according to claim 1, wherein the graphics program online development request comprises display configuration information, and the selecting or creating a cloud instance with a image rendering function in a cloud instance resource pool comprises: selecting or creating, in the cloud instance resource pool, a cloud instance matching the display configuration information.
    • Claim:
      3. The method according to claim 2, wherein the display configuration information comprises cloud instance specification information, a rendering mode, and a rendering parameter, the rendering mode comprises one of software rendering, local hardware rendering, or remote hardware rendering, and different rendering modes correspond to different rendering parameters.
    • Claim:
      4. The method according to claim 3, wherein if the rendering mode is the software rendering, the rendering parameter comprises graphics interface information required for the software rendering; the selecting or creating, in the cloud instance resource pool, a cloud instance matching the display configuration information comprises: selecting or creating, by the cloud management platform in the cloud instance resource pool, a cloud instance matching the cloud instance specification information; and configuring a corresponding graphics interface for the cloud instance based on the graphics interface information; and the running, by the cloud instance, the graphics program to render a graphic comprises: running, by the cloud instance, the graphics program, and invoking the graphics interface to render the graphic.
    • Claim:
      5. The method according to claim 3, wherein if the rendering mode is the local hardware rendering, the rendering parameter comprises specification information of a local graphics processing unit, GPU; the selecting or creating, in the cloud instance resource pool, a cloud instance matching the display configuration information comprises: selecting or creating, by the cloud management platform in the cloud instance resource pool, a cloud instance that matches the cloud instance specification information and the specification information of the local GPU; and the running, by the cloud instance, the graphics program to render a graphic comprises: running, by the cloud instance, the graphics program, invoking a drive interface of the local graphics processing unit GPU, and rendering the graphic by using the local GPU.
    • Claim:
      6. The method according to claim 3, wherein if the rendering mode is the remote hardware rendering, the rendering parameter comprises specification information of a remote GPU; the selecting or creating, in the cloud instance resource pool, a cloud instance matching the display configuration information comprises: selecting or creating, by the cloud management platform in the cloud instance resource pool, a cloud instance matching the cloud instance specification information; and obtaining, by the cloud management platform, a connection address of the remote GPU based on the specification information of the remote GPU, and sending the connection address to the cloud instance; and the running, by the cloud instance, the graphics program to render a graphic comprises: running, by the cloud instance, the graphics program, invoking a driver of the remote GPU based on the connection address, and rendering the graphic by using the remote GPU.
    • Claim:
      7. The method according to claim 1, wherein the client runs in a browser of a terminal device held by the tenant, the client is constructed based on a web page development technology, and the web page development technology comprises one or more of a hypertext markup language HTML, JavaScript, and cascading style sheets CSS.
    • Claim:
      8. The method according to claim 7, wherein the terminal device comprises a mobile phone, a tablet computer, a personal computer, a smart television, and a game console.
    • Claim:
      9. The method according to claim 1, wherein the cloud instance comprises a virtual machine, a container, or a bare metal server.
    • Claim:
      10. A computing device, comprising a processor and a memory, wherein the memory is configured to store code, and the processor is configured to invoke the instruction in the memory to: receive a graphics program online development request input by a tenant, select or create a cloud instance for image rendering in a cloud instance resource pool, and set a connection between the cloud instance and a client of the tenant; wherein the cloud instance is used to: receive graphics program code sent by the client, compile the graphics program code to generate a graphics program, run the graphics program to render a graphic and send the graphic to the client for display.
    • Claim:
      11. The computing device according to claim 10, wherein the graphics program online development request comprises display configuration information, and the processor is configured to invoke the instruction in the memory to: select or create, in the cloud instance resource pool, a cloud instance matching the display configuration information.
    • Claim:
      12. The computing device according to claim 11, wherein the display configuration information comprises cloud instance specification information, a rendering mode, and a rendering parameter, the rendering mode comprises one of software rendering, local hardware rendering, or remote hardware rendering, and different rendering modes correspond to different rendering parameters.
    • Claim:
      13. The computing device according to claim 12, wherein if the rendering mode is the software rendering, the rendering parameter comprises graphics interface information required for the software rendering, and the processor is configured to invoke the instruction in the memory to: select or create in the cloud instance resource pool, a cloud instance matching the cloud instance specification information; and configure a corresponding graphics interface for the cloud instance based on the graphics interface information; and wherein the cloud instance is used to: run the graphics program and invoke the graphics interface to render the graphic.
    • Claim:
      14. The computing device according to claim 12, wherein if the rendering mode is the local hardware rendering, the rendering parameter comprises specification information of a local graphics processing unit, GPU, and the processor is configured to invoke the instruction in the memory to: select or create in the cloud instance resource pool, a cloud instance that matches the cloud instance specification information and the specification information of the local GPU; and wherein the cloud instance is used to: run the graphics program, invoke a drive interface of the local graphics processing unit GPU and render the graphic by using the local GPU.
    • Claim:
      15. The computing device according to claim 12, wherein if the rendering mode is the remote hardware rendering, the rendering parameter comprises specification information of a remote GPU; and the processor is configured to invoke the instruction in the memory to: select or create in the cloud instance resource pool, a cloud instance matching the cloud instance specification information; and obtain a connection address of the remote GPU based on the specification information of the remote GPU, and send the connection address to the cloud instance; and wherein the cloud instance is used to: run the graphics program, invoke a driver of the remote GPU based on the connection address and render the graphic by using the remote GPU.
    • Claim:
      16. The computing device according to claim 10, wherein the client runs in a browser of a terminal device held by the tenant, the client is constructed based on a web page development technology, and the web page development technology comprises one or more of a hypertext markup language HTML, JavaScript, and cascading style sheets CSS.
    • Claim:
      17. The computing device according to claim 16, wherein the terminal device comprises a mobile phone, a tablet computer, a personal computer, a smart television, and a game console.
    • Claim:
      18. The computing device according to claim 10, wherein the cloud instance comprises a virtual machine, a container, or a bare metal server.
    • Current International Class:
      06; 06; 04
    • الرقم المعرف:
      edspap.20240311097