Information processing device, information processing method, and program

The information processing device addresses the delay in real-time applications by controlling frame drawing and output timing, reducing lag through a standby process that synchronizes CPU and GPU operations.

JP2024122301AActive Publication Date: 2024-09-09SONY INTERACTIVE ENTERTAINMENT LLC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023029769
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-09
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In applications requiring real-time processing, such as games, there is a delay in displaying user operations due to the CPU accepting inputs and drawing frames that are buffered by the GPU until a future timing, causing undesirable lag.

Method used

An information processing device that includes a processor which waits for frame drawing processing until an instructed timing, controls the start of execution after a standby process, and outputs buffered frames at predetermined timings.

Benefits of technology

This approach reduces the delay from user operation to frame drawing by accepting inputs during the standby process, ensuring timely display of user interactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide an information processing device, an information processing method, and a program capable of reducing delay from operation to drawing.SOLUTION: An information processing device including a processor draws an image frame by frame, buffers the image, and outputs a buffered frame at a predetermined timing. The processor executes waiting processing for waiting for the frame drawing processing until instructed timing, and controls a start of the frame drawing processing after the waiting processing.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device, an information processing method, and a program. [Background technology]

[0002] In recent years, the processing speed of processors such as CPUs and GPUs (Graphics Processing Units) has improved, making it possible to draw animations in real time.

[0003] For example, in applications such as games, it is possible to repeatedly change the viewpoint of a user character within a virtual game space through operations input by the user, and to draw and output an image of the game space as seen from the changed viewpoint.

[0004] In such cases, it is common to draw (buffer) a frame corresponding to the screen to be displayed before output, and then display it at a predetermined timing after drawing is completed. Summary of the Invention [Problem to be solved by the invention]

[0005] Under such circumstances, as shown in Fig. 8, user inputs up to time A when rendering of a certain frame to be displayed in the future is started are accepted by the CPU, and rendering processing of the frame to be displayed in the future is performed based on the user inputs up to that point. In this CPU rendering processing, a rendering instruction is issued to the GPU, and the actual rendering of the frame image is performed by the GPU. The GPU holds this frame (buffer) until a predetermined timing B (flip timing) in the future, and performs output processing (image output) to a display device or the like at the predetermined timing B.

[0006] Therefore, for the user, a display corresponding to an operation performed at timing A is delayed by a time T until timing B. Such a delay is not desirable for an application that requires real-time processing, such as a game application.

[0007] The present invention has been made in consideration of the above-mentioned circumstances, and one of its objects is to provide an information processing device, an information processing method, and a program that can reduce the delay from such an operation to drawing. [Means for solving the problem]

[0008] One aspect of the present invention which solves the problems of the conventional examples described above is an information processing device which has a processor, draws and buffers an image frame by frame, and outputs the buffered frames at predetermined timings, wherein the processor executes a wait process which waits for the frame drawing process to finish until a specified timing, and controls the start of execution of the frame drawing process after the wait process. Effect of the Invention

[0009] According to the present invention, by accepting user input while waiting for rendering processing, it is possible to reduce the delay from an operation to rendering. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram illustrating an example of a configuration of an information processing system according to an embodiment of the present invention. [Diagram 2] 2 is a functional block diagram illustrating an example of a control unit of an information processing device according to an embodiment of the present invention. FIG. [Diagram 3] FIG. 2 is an explanatory diagram illustrating an example of the operation of the information processing system according to the embodiment of the present invention. [Figure 4] FIG. 11 is an explanatory diagram illustrating another operation example of the information processing system according to the embodiment of the present invention. [Diagram 5] FIG. 11 is an explanatory diagram illustrating yet another operation example of the information processing system according to the embodiment of the present invention. [Figure 6] FIG. 11 is an explanatory diagram illustrating another operation example of the information processing system according to the embodiment of the present invention. [Figure 7] FIG. 11 is an explanatory diagram illustrating still another operation example of the information processing system according to the embodiment of the present invention. [Figure 8] FIG. 1 is an explanatory diagram illustrating an example of timing of a conventional drawing process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] An embodiment of the present invention will be described with reference to the drawings. As shown in Fig. 1, an information processing device 1 according to the embodiment of the present invention includes a control unit 11 as a processor, a storage unit 12, an operation control unit 13, and a display control unit 14, and preferably further includes a communication unit 15.

[0012] A peripheral device 2 including a GPU 21, which is a graphic processor, may be connected to the display control unit 14 of the information processing device 1. The information processing device 1 and the peripheral device 2 may be integrated into an information processing system.

[0013] Further, a game controller C, a keyboard, a mouse, and other operation devices 3 are connected by wire or wirelessly to the information processing device 1. In addition, a display device D is connected to the peripheral device 2.

[0014] The control unit 11 is a program-controlled device such as a CPU, and realizes the processor of the present invention. The control unit 11 operates according to a program stored in the storage unit 12. In one example of this embodiment, when performing a frame drawing process, the control unit 11 executes a standby process for waiting for the frame drawing process until a specified timing, and controls the start of execution of the frame drawing process after the standby process. The operation of the control unit 11 will be described in detail later.

[0015] The storage unit 12 is a memory device, a disk device, or the like, and holds a program executed by the control unit 11. The program held in the storage unit 12 may be provided by being stored in a computer-readable and non-transitory recording medium. The storage unit 12 of this embodiment also operates as a work memory for the control unit 11.

[0016] The operation control unit 13 receives information indicating the content of a user's operation from the operation device 3 such as a game controller. The operation control unit 13 outputs the received information indicating the content of the operation to the control unit 11.

[0017] The display control unit 14 receives information such as drawing instructions generated by the frame drawing process from the control unit 11, and outputs the information such as drawing instructions to the peripheral device 2.

[0018] The GPU 21 of the peripheral device 2 accepts frame drawing instructions input from the control unit 11 and stores them in a command buffer, and when drawing becomes possible, draws the frame image in an image buffer according to the stored drawing instructions. The GPU 21 also outputs the frame drawn in the image buffer to the display device at a predetermined timing (for example, VSYNC timing of the display device). In one example of the present embodiment, the GPU 21 has a pair of command buffers and a pair of image buffers (so-called double buffers). Furthermore, each drawn frame may be associated with unique identification information (frame number), which may be used by the control unit 11 and the GPU 21.

[0019] An example of the operation device 3 is a game controller C, which accepts an instruction operation from a user and outputs information indicating the content of the operation by the user to the information processing device 1 via a wired or wireless connection.

[0020] Next, an example of the operation of the control unit 11 of this embodiment will be described. The control unit 11 of this embodiment executes a program stored in the storage unit 12 to realize a functional configuration including an input receiving unit 41, a standby processing unit 42, a process start control unit 43, and an application processing unit 44, as exemplified in Fig. 2. Here, the application processing unit 44 functionally includes a drawing processing unit 441.

[0021] The input accepting unit 41 accepts operation information representing the contents of an operation performed by the user on the operation device 3 via the operation control unit 13. The input accepting unit 41 buffers and holds the accepted operation information in the order in which it was accepted, and outputs the information to the application processing unit 44 in that order. The input accepting unit 41 also accepts operation information representing the contents of an operation performed by the user (acceptance of input from the user) while a standby processing unit 42, which will be described later, is putting the drawing processing by the application processing unit 44 on standby (during standby processing).

[0022] The standby processing unit 42 causes the application processing unit 44 to wait for the instructed timing (hereinafter, this timing is referred to as the rendering start timing for distinction). In one example of the present embodiment, the standby processing unit 42 may determine the rendering start timing by a predetermined method based on a future timing (hereinafter, this timing is referred to as the reference timing for distinction) at which a frame to be displayed and output in the future (hereinafter, referred to as the target frame for convenience) will be displayed and output (hereinafter, referred to as the flip). Here, the target frame is a frame to be rendered in the future based on a rendering instruction generated by the rendering processing unit 441 of the application processing unit 44 by the rendering processing that the standby processing unit 42 has waited for.

[0023] Specifically, the waiting processing unit 42 accepts inputs of the number of frames n (n is an integer greater than or equal to 1) from the target frame Ft to another frame Fr that is to be output in advance, and the elapsed time (hereinafter referred to as the additional time) t from the timing at which the other frame Fr is flipped, as information indicating the conditions for terminating the waiting processing from the application executing this drawing processing.

[0024] The standby processing unit 42 receives information indicative of the condition and waits until the specified timing arrives. That is, as illustrated in Fig. 3, at time point A when the application is about to start drawing a target frame Ft to be displayed in the future, the standby processing unit 42 receives input of the number of frames n (hereinafter referred to as the specified number of frames, n is an integer equal to or greater than 1) from the target frame Ft to another frame Fr to be output in advance, and the elapsed time t from the timing when the other frame Fr is flipped (hereinafter referred to as the additional time) as information indicative of the condition for ending the standby processing. In this example, n=2 and the additional time t=1 millisecond.

[0025] The waiting processing unit 42 of the control unit 11 (CPU in FIG. 3) monitors the state of frame flipping by the GPU 21, and waits until frame Fr, which is the specified number of frames n=2 before the target frame Ft, is flipped among other frames that will be flipped before the flip timing of the target frame Ft (future point in time B).

[0026] When the frame Fr is flipped, the standby processing unit 42 waits for an additional time (1 millisecond in this example) from the timing C. Then, when the time C' arrives at which the additional time has elapsed, the standby processing unit 42 notifies the process start control unit 43 of the end of the standby process.

[0027] The process start control unit 43 instructs the rendering process unit 441 of the application processing unit 44 to start rendering of the target frame Ft that has been on hold. This controls the start of the rendering process from time point C'.

[0028] The application processing unit 44 executes the processing of an application program, and in this example, executes frame drawing processing and the like based on operation information indicating the content of an operation performed by a user.

[0029] The application program executed by the application processing unit 44 may be any type of application program, such as a game program or a simulator.

[0030] When the drawing processing unit 441 of the application processing unit 44 finishes the drawing processing of the previous frame, it waits until it receives an instruction to start drawing the next frame from the process start control unit 43. Then, when it receives the instruction to start drawing this frame, it obtains operation information by the user that has been accepted by the input acceptance unit 41 up to that point (point C' in Fig. 3 in this example), and executes the drawing processing by using the operation information.

[0031] The rendering process by the control unit 11 here is actually a process of generating a rendering instruction for the GPU 21, and after this rendering process, the GPU 21 actually renders the frame.

[0032] The GPU 21 of the peripheral device 2 holds the drawing instructions input from the control unit 11, which is the CPU, in a command buffer, and if there is an image buffer that is not being displayed or is not being displayed (if there is an empty buffer), it draws (buffers) a frame image in the empty buffer according to the drawing instructions held in the command buffer.Then, it outputs (flips) the buffered frame image to a display device or the like at a predetermined timing (for example, the timing of the next VSYNC).

[0033] The timing of this flip may be instructed by the control unit 11 of the information processing device 1, or may be controlled on the GPU 21 side.

[0034] [Operation] This embodiment basically has the above configuration and operates as follows: In one example of this embodiment, the information processing device 1 of the information processing system executes a game application and renders a game space in response to a user's operation.

[0035] The information processing system also includes a peripheral device 2 including a GPU 21, which performs drawing and display on a display device using a pair of command buffers and a pair of drawing buffers.

[0036] During execution of a game application, the information processing device 1 repeatedly draws and displays frames as follows: That is, the information processing device 1 repeatedly receives operation information representing the content of a user's operation on the operation device 3 via the operation control unit 13, as illustrated in FIG.

[0037] Furthermore, as part of the processing of the game application, at the timing (point A) when the drawing of a target frame Ft to be displayed in the future is to begin, the information processing device 1 instructs the standby process, which waits for the timing of drawing, to specify the specified number of frames n (n is an integer greater than or equal to 1) from the target frame Ft to another frame Fr to be output in advance, as information indicating the conditions for ending the standby process, and an additional time t from the timing when the other frame Fr is flipped.

[0038] In the example of FIG. 3, this instruction specifies the number of frames n=2 and the additional time t=1 millisecond (a time shorter than the display period of one frame, for example, the VSYNC period).

[0039] As illustrated in FIG. 3, the information processing device 1 executes waiting processing as various services (API: Application Program Interface) performed for application programs, monitors the state of frame flipping by the GPU 21, and waits until frame Fr, which is a specified number of frames n=2 frames before the target frame Ft, is flipped among other frames that will be flipped before the flip timing of the target frame Ft (future point in time B).

[0040] In this waiting process, when the frame Fr is flipped, the information processing device 1 waits for an additional time (1 millisecond in this example) from the timing C. Then, when the time C' arrives when the additional time has elapsed, the information processing device 1 instructs the application program processing to start drawing the target frame Ft that has been waiting.

[0041] The information processing device 1 returns to the processing of the application program, and executes frame drawing processing and the like based on the operation information that indicates the content of the operation and that has been accepted via the operation control unit 13 up to this timing C'.

[0042] As shown in the example of Figure 3, at timing C', the image in the drawing destination buffer is still displayed, but it is possible for the CPU to generate drawing instructions and for the GPU 21 to buffer the drawing instructions in the command buffer.

[0043] Therefore, the information processing device 1 starts drawing processing (generation of drawing instructions) in the CPU from this timing C'. This processing is executed as processing of an application program, and in this example of the present embodiment, an instruction to draw an image in the game space is generated using operation information input by the user up to timing C'. For example, the movement of a user character placed in the game space is controlled by investigation information input by the user up to timing C'.

[0044] The information processing device 1 outputs the generated drawing instruction to the GPU 21. The GPU 21 holds the drawing instruction input from the information processing device 1 in a command buffer, and draws (buffers) the frame image in the image buffer that has become a free buffer in accordance with the drawing instruction held in the command buffer at a timing after the timing of an image buffer that is not yet displayed or is not being displayed (the timing of the frame immediately before the target frame being flipped).The GPU 21 then outputs the buffered frame image to a display device or the like at the timing of the next VSYNC (B).

[0045] According to this example, compared with the time T between time point A and time point B in the conventional example shown in FIG. 8, the corresponding time T′ will be shortened, and the image flipped at time point B will reflect the content that the user has operated relatively recently. Thus, according to this embodiment, the delay from operation to drawing can be shortened.

[0046] [When it takes a relatively long time for frame drawing] Note that in the example of FIG. 3, the time required for the GPU 21 to draw a frame is much less than the display period of the frame image. However, when the time required for the GPU 21 to draw a frame is longer than this, increase the specified number of frames n or shorten the additional time t. And among the frame drawings by the GPU 21, the capture of the drawing instruction from the GPU 21 to the command buffer is performed before the drawing buffer to be drawn becomes an empty buffer (FIG. 4).

[0047] In this example, the period from the completion of the capture of the drawing instruction to the drawing buffer becoming an empty buffer will be a stall (a state where nothing is done). Therefore, this stall period should be as short as possible (0 if possible), and the drawing to the drawing buffer should be completed before the flip timing of the target frame drawn in the drawing buffer. The specified number of frames n and the additional time t are determined accordingly. Such settings of the specified frame n and the additional time t can be experimentally performed, for example. The developer of the application program may design to adaptively set according to, for example, the number of polygons to be displayed in the processing of the application program.

[0048] [Timeout] Also, when the control unit 11 of the information processing apparatus 1 arrives at the timing to flip a frame that is flipped prior to the target frame output at a reference timing during the standby process and is flipped L (L is an integer such that 1 ≦ L < n and is predetermined) before the target frame, the standby process may be interrupted and the execution of the drawing process may be started.

[0049] In yet another example, when a predetermined timeout period has elapsed since the start of the standby process, the control unit 11 of the information processing device 1 may interrupt the standby process at that time and start the execution of the drawing process. Such a case may occur when the timing of the flip is not constant.

[0050] [Waiting process end condition] In the above description, the condition for ending the standby process is set based on the relative number of frames (designated number of frames) from the target frame that serves as a reference, but the present embodiment is not limited to this.

[0051] For example, the condition for ending this standby process may be determined by frame identification information. As a specific example, the end condition may be determined by a frame number (N), which is the frame identification information, and an additional time t from the timing when frame FN of frame number N is flipped. In this example, the control unit 11, which executes the processing of the application program, indicates the frame number (N) and the additional time t to the standby process that waits for the timing of drawing.

[0052] The control unit 11 that executes the standby process receives the frame number (N) and the additional time t to start the standby process, monitors the state of the frame flip by the GPU 21, and waits until the timing of the frame flip of frame number N.

[0053] In this waiting process, when the frame with frame number N is flipped, the control unit 11 of the information processing device 1 waits for an additional time t from that timing. Then, when the time point when the additional time t has elapsed arrives, the control unit 11 instructs the application program processing to start drawing the target frame that has been waiting.

[0054] The information processing device 1 returns to the processing of the application program, and executes frame drawing processing and the like based on the operation information indicating the content of the operation that has been accepted via the operation control unit 13 by the time the start of this drawing is instructed.

[0055] [Inquiry to GPU] The control unit 11 of the information processing device 1 may inquire about the processing status of the GPU 21 of the peripheral device 2 at each predetermined inquiry timing. Specifically, in cases where the control unit 11 does not control the timing of flipping an image, the control unit 11 inquires of the GPU 21 about the identification information of the most recently flipped frame.

[0056] In this example, in response to an inquiry from the control unit 11, the GPU 21 outputs identification information of the most recently flipped frame to the control unit 11. The control unit 11 refers to the identification information received in response to this inquiry, and when the frame identified by the identification information corresponds to the frame specified by the relative designated frame number from the target frame, or when the frame identified by the identification information corresponds to the frame designated by the frame number (N), the control unit 11 waits for an additional time t from the time of flipping of the frame, terminates the standby process, and controls the start of execution of the drawing process.

[0057] [Parallel operation of CPU and GPU] Furthermore, the drawing process by the control unit 11 (the process of generating drawing instructions) and the drawing process by the GPU 21 (the process of storing drawing instructions and actually drawing frames) may be performed in parallel. In this case, the drawing process by the GPU 21 starts before the end of the drawing process by the control unit 11 (FIG. 5). FIG. 5 shows an example in which the relative designated number of frames from the target frame, n=1. By operating the control unit 11 and the GPU 21 in parallel during the display period of one frame in this way, the period from a user's operation to the display of a corresponding image can be shortened without degrading performance.

[0058] This operation is the same when specifying the end condition of the waiting process by the frame number (N) (FIG. 6). In FIG. 6, an example where the frame number N=2 is shown.

[0059] [Triple buffer example] Furthermore, the number of command buffers and drawing buffers is not limited to two (double buffers) and may be three (triple buffers) or more. In this case, if the above-described waiting process of this embodiment is not performed, the delay in the timing of display corresponding to the user's operation will be greater than in the case of a double buffer.

[0060] On the other hand, if the standby process is performed from the flip of the frame n=3 before the target frame until the additional time t, the delay T' in the timing of the display corresponding to the user's operation is relatively short, as shown in Fig. 7(a). However, in this case, the effect of the triple buffer is reduced.

[0061] In such an example, in the processing of an application program, the designated frame number n or frame number N and the additional time t are adaptively adjusted according to, for example, a game scene. This makes it possible to control whether to shorten the timing delay T' by making the designated frame number n relatively small, for example, as in the example of Fig. 7(a), even if it reduces the effect of the triple buffer, or to secure the number of drawing buffers (making it possible to extend the time spent on drawing processing) by making the designated frame number n relatively large, for example (n=4 in Fig. 7(b)), even if it increases the timing delay T', as shown in the example of Fig. 7(b).

[0062] The former is effective in situations where display delay from operation is an issue, such as fighting scenes, while the latter is effective in situations where the detail of the displayed content is more important than the display delay from operation, such as landscape scenes.

[0063] [Operation acceptance processing] In the above description, the process of receiving the operation information by the control unit 11 may be processed in a thread separate from the drawing process (parallel processing), or the operation information may be processed in the same thread as the drawing process. The method may be selected by the application program, or may be determined based on the conditions of the hardware on which it is executed. [Explanation of symbols]

[0064] 1 information processing device, 2 peripheral device, 3 operation device, 11 control unit, 12 memory unit, 13 operation control unit, 14 display control unit, 15 communication unit, 21 GPU, 41 input reception unit, 42 standby processing unit, 43 processing start control unit, 44 application processing unit, 441 drawing processing unit.

Claims

1. An information processing device that includes a processor, draws an image frame by frame, buffers the image, and outputs the buffered frames at a predetermined timing, The processor, Execute a waiting process to wait for the frame drawing process until the specified timing, An information processing device that controls the start of execution of a frame drawing process after the standby process.

2. 2. The information processing device according to claim 1, The information processing device is further connected to a peripheral device having a graphic processor, the frame drawing process by the processor includes a process of generating a drawing instruction for the graphic processor; The graphics processor of the peripheral device renders and buffers a frame image in accordance with the rendering instruction, and outputs the buffered frame at a predetermined timing.

3. 3. The information processing device according to claim 2, An information processing apparatus in which the timing at which the processor waits is determined based on the timing at which a frame drawn in accordance with a generated drawing instruction is output.

4. 3. The information processing device according to claim 2, An information processing device in which the timing at which the processor waits is determined using the timing at which a frame drawn in accordance with the generated drawing instructions is output as a target frame, and the timing at which the frame that is to be output a specified number of frames before the target frame is output, based on the timing at which the target frame is output.

5. 4. The information processing device according to claim 3, The timing is specified by the number of frames n (n is an integer greater than or equal to 1) from the frame output at the reference timing to the other frame output prior to the frame in question, and the time t that has elapsed since the timing at which the other frame is output, and the processor, in the waiting process, waits until the time t has elapsed from the output timing of the other frame that is n frames prior to the frame in question, before performing the drawing process of the frame output at the reference timing as the specified timing.

6. 6. The information processing device according to claim 5, The number of frames n is an integer equal to or greater than 2, The information processing device, when the output timing of another frame that is a predetermined L (1≦L<n) frames before the frame output at the reference timing arrives during the standby process of the drawing process, interrupts the standby process even before time t has elapsed since the output timing of the other frame that is n frames before the frame output at the reference timing, and controls the start of execution of the drawing process.

7. 2. The information processing device according to claim 1, When a predetermined timeout period has elapsed since the start of a standby process for waiting for the rendering process of the frame, the processor interrupts the standby process at that point and controls the start of execution of the rendering process.

8. 3. The information processing device according to claim 2, The information processing device, wherein the processor inquires of a graphics processor of the peripheral device about a processing status at each predetermined inquiry timing.

9. 9. The information processing device according to claim 1, The processor accepts an input from a user during a standby process of the drawing process; In the drawing process, the information processing device performs drawing processing using an input accepted during the standby process.

10. A processor and a graphics processor, The processor, Execute a waiting process to wait for the frame drawing process until the specified timing, After the waiting process, control is performed to start execution of a drawing process for the frame, and a drawing instruction is generated for the graphic processor; The graphics processor includes: The information processing device renders and buffers a frame image in accordance with a rendering instruction generated by the processor, and outputs the buffered frame at a predetermined timing.

11. An information processing device is used that includes a processor, draws an image frame by frame, buffers the image, and outputs the buffered frames at a predetermined timing; By the processor Execute a waiting process to wait for the frame drawing process until the specified timing, The information processing method further comprises controlling start of execution of a frame drawing process after the standby process.

12. An information processing device that draws an image frame by frame, buffers the image, and outputs the buffered frames at a predetermined timing, a means for executing a waiting process for waiting for a drawing process of a frame until a specified timing; a means for controlling start of execution of a frame drawing process after the standby process; A program that functions as a

Citation Information

Patent Citations

  • load distribution

    JP2008513890A

  • Image frame processing method and device, rendering processor and moving image display method

    JP2009110536A

  • Image processing apparatus and image processing program

    JP2015108745A