Frame rate adjustment methods, electronic devices and storage media

By dynamically adjusting the frame rate and using motion-relieving animations that map the motion state of vehicles in real time, the problem of motion sickness when riding in vehicles is solved, achieving both motion sickness relief and performance improvement.

CN122131992APending Publication Date: 2026-06-02HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-11-30
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

The use of electronic devices while traveling can easily trigger motion sickness, and current technology is unable to effectively alleviate this problem.

Method used

By dynamically adjusting the frame rate, combining sensor data and motion sickness relief animations, the motion state of the vehicle is mapped in real time, reducing the conflict between the user's vision and the motion state perceived by the vestibular system. A counter is used to ensure data accuracy and the stability of frame rate adjustment.

Benefits of technology

It effectively alleviates motion sickness while reducing the power consumption of electronic devices and improving their performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122131992A_ABST
    Figure CN122131992A_ABST
Patent Text Reader

Abstract

This application provides a frame rate adjustment method, an electronic device, and a storage medium, relating to the field of terminal technology. The method includes: determining whether the current frame rate corresponds to a low frame rate state; if not, determining whether the acquired current data meets the conditions for frame rate reduction; if it does, reducing the frame rate; if not, maintaining the current frame rate; if yes, determining whether the current data meets the conditions for frame rate increase; if it does, increasing the frame rate; if not, maintaining the current frame rate; wherein the current data includes sensor data or element parameters of motion sickness relief animation, both of which are used to map the driving state of the electronic device in real time. This method can reduce power consumption and improve the performance of the electronic device while alleviating motion sickness in users by dynamically adjusting the frame rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a frame rate adjustment method, electronic device, and storage medium. Background Technology

[0002] Motion sickness is very likely to occur when users use electronic devices while traveling. Motion sickness is a condition caused by the acceleration and deceleration of various forms of transportation such as cars, trains, ships, and airplanes during travel, which stimulate the vestibular system.

[0003] Therefore, how to alleviate motion sickness when users use electronic devices while traveling has become an urgent problem to be solved. Summary of the Invention

[0004] This application provides a frame rate adjustment method, an electronic device, and a storage medium that, by dynamically adjusting the frame rate, reduces power consumption and improves the performance of the electronic device while alleviating motion sickness in users.

[0005] In a first aspect, this application provides a frame rate adjustment method applied to an electronic device. The method includes: determining whether the current frame rate corresponds to a low frame rate state; if not, determining whether the acquired current data meets the frame rate reduction condition; if it does, reducing the frame rate; if it does not, maintaining the current frame rate; if yes, determining whether the current data meets the frame rate increase condition; if it does, increasing the frame rate; if it does not, maintaining the current frame rate; wherein the current data includes sensor data or motion sickness relief animation element parameters, and both the sensor data and the motion sickness relief animation are used to map the driving state of the electronic device in real time.

[0006] Optionally, when the electronic device is inside the vehicle, the motion state of the electronic device is consistent with the motion state of the vehicle, so motion sickness relief animation can also be used to map the motion state of the vehicle in real time.

[0007] In this embodiment, the motion sickness relief animation is used to map different driving states of electronic devices in real time, so that the driving state of the motion sickness relief animation seen by the user's eyes on the display interface is consistent with the actual motion state perceived by the vestibular system. That is, the motion information perceived by the user's eyes is consistent with the motion information perceived by the vestibular system, thereby reducing the conflict between the user's vision and the vestibular system perception, and thus alleviating the user's motion sickness.

[0008] In this embodiment of the application, during the display of the motion sickness relief animation, the current frame rate can be determined by combining real-time acquired sensor data or determined element parameters of the motion sickness relief animation. This allows for real-time dynamic adjustment of the frame rate. When the conditions for increasing the frame rate are met, the system can switch to a high frame rate state to provide a better animation display effect; when the conditions for decreasing the frame rate are met, the system can switch to a low frame rate state to reduce the degradation of the electronic device's performance.

[0009] In conjunction with the first aspect, in some implementations of the first aspect, after determining whether the current data meets the frame reduction condition, the method further includes: if the frame reduction condition is not met, then the value of the first counter is cleared to zero, and the current frame rate is maintained; if the frame reduction condition is met, then the first counter is used to count the number of times the frame reduction condition is met, and the value is incremented by 1; determine whether N1 consecutive data meet the frame reduction condition? If yes, then the value of the first counter is cleared to zero, and the frame rate is reduced; if no, then the current frame rate is maintained.

[0010] In conjunction with the first aspect, in some implementations of the first aspect, after determining whether the current data meets the frame-up condition, the method further includes: if the frame-up condition is not met, then the value of the second counter is cleared to zero, and the current frame rate is maintained; if the frame-up condition is met, then the second counter is used to count the number of times the frame-up condition is met, and the value is incremented by 1; determine whether N2 consecutive data meet the frame-up condition? If yes, then the value of the second counter is cleared to zero, and the frame is up; if no, then the current frame rate is maintained.

[0011] Optionally, N1 and N2 can be the same or different.

[0012] In this embodiment of the application, in order to avoid errors in the acquired data or judgments and to improve accuracy, a counter can be used to record the number of times the frame reduction condition is met, and the frame reduction operation is performed only after a preset number of times is met; similarly, a counter can be used to record the number of times the frame increase condition is met, and the frame increase operation is performed only after a preset number of times is met.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, the frame reduction condition includes a first frame reduction condition, a second frame reduction condition, and a third frame reduction condition; after determining that the current frame rate does not correspond to the low frame rate state, the method further includes: determining whether the current frame rate corresponds to a first refresh state; if it is the first refresh state, determining whether the current data satisfies the first frame reduction condition; if yes, reducing the frame rate to a second refresh state; if no, maintaining the current frame rate; if it is not the first refresh state, determining whether the current frame rate corresponds to the second refresh state; if it is the second refresh state, determining whether the current data satisfies the second frame reduction condition; if yes, reducing the frame rate to a third refresh state; if no, maintaining the current frame rate; if it is not the second refresh state, determining that the current frame rate is the third refresh state; when it is the third refresh state, determining whether the current data satisfies the third frame reduction condition; if yes, reducing the frame rate to the low frame rate state; if no, maintaining the current frame rate.

[0014] In conjunction with the first aspect, in some implementations of the first aspect, the frame-boosting conditions include a first frame-boosting condition, a second frame-boosting condition, and a third frame-boosting condition; after determining that the current frame rate corresponds to the low frame rate state, the method further includes: determining whether the current data satisfies the first frame-boosting condition; if yes, boosting the frame to the third refresh state; if no, maintaining the current frame rate; after boosting the frame to the third refresh state, determining whether the current data satisfies the second frame-boosting condition; if yes, boosting the frame to the second refresh state; if no, maintaining the current frame rate; when boosting the frame to the second refresh state, determining whether the current data satisfies the third frame-boosting condition; if yes, boosting the frame to the first refresh state; if no, maintaining the current frame rate.

[0015] In this embodiment, during the display of the motion sickness relief animation, real-time sensor data or determined element parameters of the motion sickness relief animation can be used to determine whether the current frame rate needs to be increased or decreased. Thus, the frame rate can be dynamically adjusted in real time. When the conditions for increasing the frame rate are met, the system can switch to a relatively higher frame rate to provide a better animation display effect; when the conditions for decreasing the frame rate are met, the system can switch to a relatively lower frame rate to reduce the degradation of the electronic device's performance.

[0016] In conjunction with the first aspect, in some implementations of the first aspect, the frame rates corresponding to the first refresh state, the second refresh state, the third refresh state, and the low frame rate state decrease sequentially.

[0017] In conjunction with the first aspect, in some implementations of the first aspect, the frame reduction condition further includes a fourth frame reduction condition. After determining that the current frame rate corresponds to the first refresh state, the method further includes: determining whether the current data satisfies the fourth frame reduction condition; if yes, then reducing the frame rate to the third refresh state; if no, then determining whether the current data satisfies the first frame reduction condition.

[0018] In conjunction with the first aspect, in some implementations of the first aspect, the frame-lifting condition further includes a fourth frame-lifting condition. After lifting the frame to the third refresh state, the method further includes: determining whether the current data meets the fourth frame-lifting condition; if yes, then lifting the frame to the first refresh state; if no, then determining whether the current data meets the second frame-lifting condition.

[0019] In this embodiment of the application, in order to avoid errors in the acquired data or judgments and to improve accuracy, a counter can be used to record the number of times the first frame reduction condition, the second frame reduction condition, the third frame reduction condition, or the fourth frame reduction condition is met, and the frame reduction operation is performed only after a preset number of times is met; similarly, a counter can also be used to record the number of times the first frame increase condition, the second frame increase condition, the third frame increase condition, or the fourth frame increase condition is met, and the frame increase operation is performed only after a preset number of times is met.

[0020] In conjunction with the first aspect, in some implementations of the first aspect, the low frame rate state includes a static state, which is used to indicate that the frame rate of the motion sickness relief animation is 0Hz.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: acquiring the sensor data; determining element parameters in the motion sickness relief animation based on the sensor data; wherein the sensor data includes at least one of data from an accelerometer sensor, data from a gyroscope sensor, data from a rotation vector sensor, and data from a linear accelerometer sensor; and the element parameters include at least one of position, display size, direction of movement, and amount of movement.

[0022] In conjunction with the first aspect, in some implementations of the first aspect, the driving state includes at least:

[0023] Accelerating or decelerating forward and backward, turning left and right, turning acceleration, bumping up and down, going up and down slopes, swaying left and right.

[0024] In this embodiment, the driving state of the electronic device can be accurately determined based on the acceleration and angular velocity data collected by the hardware sensors, as well as the data collected by the rotation vector sensor and the linear acceleration sensor. This allows for real-time adjustment of the element parameters of the preset animation elements according to the driving state, thereby generating motion-relieving animations that accurately map the motion state, and enabling more precise frame increases or decreases.

[0025] In a second aspect, this application provides an electronic device, which includes: one or more processors; one or more memories; a module with multiple applications installed; and the memories storing one or more programs, which, when executed by the processor, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof.

[0026] Thirdly, this application provides a chip including a processor. The processor is used to read and execute a computer program stored in a memory to perform the methods in the first aspect and any possible implementation thereof.

[0027] Optionally, the chip may also include a memory, which is connected to the processor via a circuit or wire.

[0028] Optionally, the chip also includes a communication interface.

[0029] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the methods of the first aspect and any possible implementation thereof.

[0030] Fifthly, this application provides a computer program product comprising: computer program code, which, when executed on an electronic device, causes the electronic device to perform the method of the first aspect and any possible implementation thereof.

[0031] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0032] Figure 1A This is a schematic diagram illustrating an application scenario of the frame rate adjustment method shown in an embodiment of this application.

[0033] Figure 1B and Figure 1C This is a schematic diagram of a display interface shown in an embodiment of this application;

[0034] Figures 2A to 2D A schematic diagram of the interface for enabling the motion sickness relief function from the settings application, provided as an embodiment of this application;

[0035] Figure 2E , Figure 2F and Figure 2G A schematic diagram of the interface for activating the motion sickness relief function from the control center, provided in an embodiment of this application;

[0036] Figure 2H A schematic diagram of the interface for activating the motion sickness relief function from the smart recommendation card, provided as an embodiment of this application;

[0037] Figure 2I A schematic diagram of the interface for activating the voice-activated motion sickness relief function according to an embodiment of this application;

[0038] Figures 3A to 3C This is a schematic diagram illustrating the visual style of the motion sickness relief animation shown in the embodiments of this application;

[0039] Figures 3D to 3I This is a schematic diagram illustrating the mapping relationship between vehicle driving status and dots in an embodiment of this application;

[0040] Figures 4A to 4J This is a schematic diagram illustrating the mapping relationship between vehicle driving status and motion sickness relief animation in an embodiment of this application;

[0041] Figures 5A to 5C This is a flowchart illustrating a frame rate adjustment method according to an embodiment of this application;

[0042] Figures 6A to 6C This is a flowchart illustrating another frame rate adjustment method according to an embodiment of this application;

[0043] Figure 7 This is a schematic diagram of the software structure of an electronic device shown in an embodiment of this application;

[0044] Figure 8 This is a schematic diagram of the hardware structure of an electronic device shown in an exemplary embodiment of this application;

[0045] Figure 9 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0046] In the description of the embodiments of this application, unless otherwise stated, "" means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0047] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0048] To better understand the embodiments of this application, some terms involved in the embodiments of this application will be explained below so that those skilled in the art can understand them.

[0049] 1. Window

[0050] A window is a visual area displayed on the screen / display interface of an electronic device. In the Android system, a Window has a unique object (surface), and the Window draws its content onto this surface. Each Window has a unique view hierarchy attached to it, and views in the view hierarchy share the Window's surface. However, special views (SurfaceViews) have their own dedicated surface so that applications can draw content directly on them.

[0051] In this embodiment of the application, the motion sickness relief animation is drawn on the SurfaceView. Then, the service responsible for compositing the screen display content (Surface Flinger) renders them onto the screen of the electronic device according to the Z-order of each surface on the Z-axis.

[0052] 2. Preset area

[0053] The preset area refers to a predefined area in the screen / display interface used to display motion sickness relief animations.

[0054] It should be understood that the preset area can be the edge of the screen or an area that is easily visible to the user's eyes. That is, the area is not the main display area, but it is easy for the user to notice when browsing the screen.

[0055] 3. Inertial Measurement Unit (IMU)

[0056] An IMU (Integrated Measurement Unit) is a device used to measure and report specific forces, angular velocities, and, in some cases, the orientation of an object around a magnetic field. An IMU typically includes multiple sensors, such as accelerometers / accelerometers, gyroscopes, etc.

[0057] An ACC (Acceleration Capacitor) is a sensor used to measure acceleration, also known as an accelerometer. It can detect and measure the acceleration changes of electronic devices in space along three axes (such as the X-axis, Y-axis, and Z-axis).

[0058] GYRO is a sensor used to measure angular velocity or rotational rate, also known as a gyroscope sensor. It can detect the rotational rate of electronic devices in space about three axes (such as the X-axis, Y-axis, and Z-axis), or in other words, the angular velocity of the electronic device.

[0059] 4. Quaternion

[0060] Quaternions are used to represent and compute rotations in three-dimensional space.

[0061] 5. Attitude angle

[0062] Attitude angles are a set of angles used to describe the orientation and position of an electronic device relative to a reference coordinate system. The attitude angles used in the embodiments of this application may include yaw angle, pitch angle, and roll angle.

[0063] The Yaw angle is the rotation angle about the vertical axis (Z-axis), which determines the object's direction of travel; the Pitch angle is the rotation angle about the horizontal axis (X-axis), which describes the object's vertical tilt; and the Roll angle is the rotation angle about the vertical axis (Y-axis), which describes the object's horizontal tilt or roll. The X, Y, and Z axes can be referenced... Figure 3D .

[0064] In this embodiment, attitude angles are represented using Euler angles. Euler angles are a specific method of representing attitude angles, using three angles to describe the rotation of an electronic device in three-dimensional space. Combinations of Euler angles can be used to describe any direction of the electronic device relative to a fixed coordinate system. Euler angles consist of three angles, typically represented as yaw (β or ψ), pitch (α), and roll (γ or φ).

[0065] The above is a brief introduction to the terms used in the embodiments of this application, and will not be repeated below.

[0066] In daily life, when the movement perceived by the human eye does not match the movement perceived by the vestibular system in the ear, it can cause confusion in the brain. This confusion can trigger a series of physiological reactions, including dizziness, nausea, vomiting, and balance disorders, a condition medically known as motion sickness.

[0067] Figure 1A This is a schematic diagram illustrating an application scenario as shown in an embodiment of this application. For example... Figure 1A As shown, a user is seated inside vehicle 100, and while the vehicle 100 is in motion, the user browses the content displayed on the screen of electronic device 200. Optionally, electronic device 200 is a vehicle-mounted device fixed in the vehicle, or electronic device 200 is a mobile device held by the user.

[0068] When vehicle 100 accelerates or decelerates, goes up or down slopes, bounces left or right, or turns left or right, the user's inner ear vestibular organs sense the movement of vehicle 100 relative to the ground. However, what the user's eyes see is the screen displayed on electronic device 200, which does not move relative to the ground. This discrepancy between the user's vision and the movement perceived by the vestibular system can cause confusion in the user's brain, leading to motion sickness.

[0069] To address this issue, this application provides a motion sickness relief animation. It acquires sensor data via electronic devices and generates a motion sickness relief animation based on this data. This animation can map different vehicle driving states in real time. Essentially, it maps the six motion directions (forward / backward, up / down, left / right, pitch, roll, and yaw) perceived by a user inside the vehicle onto the motion sickness relief animation via electronic devices. Thus, when a user watches the motion sickness relief animation, the motion state of the animation displayed on the user's screen is consistent with the motion state of the vehicle relative to the ground perceived by their vestibular system. This reduces the conflict between the user's visual perception and the motion state perceived by their vestibular system. In other words, this motion sickness relief animation provides the user with visual feedback that is consistent with their vestibular system, thereby alleviating motion sickness.

[0070] It should be understood that the motion sickness relief animation provided in this application embodiment is intended for display on the electronic device 200.

[0071] In this application embodiment, the electronic device 200 can be a mobile phone, smart screen, tablet computer, wearable device (such as smartwatch, smart glasses, smart bracelet, smart ring, earphone, etc.), augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), handheld or laptop device, media player, smart projector, smart TV, desktop computer, in-vehicle infotainment system, etc. This application embodiment does not limit the specific type of electronic device. It is worth noting that the electronic device in this application embodiment can be any combination of one or more of the above-mentioned devices.

[0072] Optionally, the electronic device 200 can be a portable mobile device or a fixed device installed in various vehicles. These vehicles may include automobiles, trains, bullet trains, trams, high-speed rail, subways, maglev trains, ships, airplanes, etc.

[0073] For ease of description, we will use a vehicle as the means of transportation and a mobile phone carried by the user on the vehicle as the electronic device in the following explanation.

[0074] Figure 1B and Figure 1C This is a schematic diagram of an electronic device display interface shown in an embodiment of this application.

[0075] based on Figure 1A The scenario depicted shows a user sitting in vehicle 100 browsing content displayed on the screen of electronic device 200. For example... Figure 1B As shown, when the motion sickness relief function (or anti-motion sickness function) of the electronic device 200 is not activated, the electronic device 200 displays the interface 201 normally. However, when the motion sickness relief function is activated, the frame rate adjustment method provided in this application is executed, such as... Figure 1C As shown, the electronic device 200 can overlay or suspend a motion sickness relief animation 202 on top of the display interface 201. Here, for... Figure 1B The content shown in interface 201 Figure 1C The content of the motion sickness relief animation 202 shown is not limited.

[0076] It should be noted that the motion sickness relief animation 202 played by the electronic device 200 can dynamically simulate the motion characteristics of the vehicle 100 when it is in motion and provide real-time feedback to the user. In other words, the motion sickness relief animation 202 can always be consistent with the real-time motion state of the vehicle 100. Thus, when the user watches the motion sickness relief animation 202 displayed on the electronic device 200, the motion state of the motion sickness relief animation 202 perceived by the user's vision can be consistent with the motion state of the vehicle 100 relative to the ground perceived by the vestibular system in the inner ear. This can reduce the conflict between the user's vision and the motion state perceived by the vestibular system, thereby alleviating the user's motion sickness.

[0077] The motion sickness relief function described above can be activated in several ways, which will be introduced one by one below.

[0078] Method 1

[0079] Figures 2A to 2D This is a schematic diagram of the interface for enabling the motion sickness relief function from the settings application, provided as an embodiment of this application.

[0080] like Figure 2AAs shown, this is the main interface after the application is launched. This main interface may include options such as accessibility features. In response to the user's click on the accessibility feature options, the electronic device can switch from the main interface to display as shown below. Figure 2B The accessibility interface shown is shown. The accessibility interface may include options such as motion sickness relief; in response to the user's click on the motion sickness relief option, the electronic device can switch from the accessibility interface to display as shown. Figure 2C The interface for motion sickness relief is shown below. Among them, as shown... Figure 2C and Figure 2D As shown, the motion sickness relief function interface can include a motion sickness relief function switch and a sensitivity control bar. The motion sickness relief function switch is used to control the motion sickness relief function to be turned on and off, while the sensitivity control bar is used to adjust the motion amplitude of elements (such as dots) included in the motion sickness relief animation when the motion sickness relief function is turned on.

[0081] It should be understood that, such as Figure 2D As shown, in response to the user's activation of the motion sickness relief function, the function is turned on, the motion sickness relief animation is displayed, and the sensitivity control bar remains in a normal state, allowing the user to adjust the motion amplitude of elements included in the motion sickness relief animation by sliding left or right. Conversely, in response to the user's deactivation of the motion sickness relief function, the function stops, the motion sickness relief animation disappears, and the sensitivity control bar becomes grayed out and no longer responds.

[0082] Here, the sensitivity control bar can be stepped, meaning it has multiple levels, each corresponding to a different amplitude of movement of elements in the motion sickness relief animation. Users can switch between these levels when swiping left or right. Alternatively, the sensitivity control bar can be stepless, allowing continuous adjustment within a range without fixed levels. In this case, the amplitude of movement of elements in the motion sickness relief animation can change continuously when the user swipes left or right.

[0083] Method 2

[0084] Figure 2E and Figure 2G A schematic diagram of the interface for activating the motion sickness relief function from the control center, provided in an embodiment of this application.

[0085] like Figure 2E As shown, in response to a user swiping down from the top of the screen (e.g., the top right), the electronic device can display a control center interface, such as... Figure 2F As shown in the image. This control center interface may include a motion sickness relief function icon, which is used to turn the motion sickness relief function on or off.

[0086] like Figure 2FAs shown, in response to a click on the motion sickness relief icon, the motion sickness relief icon switches from an off state to an on state, as... Figure 2G As shown, the motion sickness relief function is enabled, and a motion sickness relief animation is displayed. Correspondingly, in response to another click on the motion sickness relief function icon, the icon can switch from the enabled state to the disabled state, the motion sickness relief function stops, and the motion sickness relief animation disappears.

[0087] In this embodiment, the operation of activating the motion sickness relief function is simplified, improving efficiency, but the sensitivity control bar cannot be adjusted at this time.

[0088] Method 3

[0089] Figure 2H A schematic diagram of the interface for activating the motion sickness relief function from the smart recommendation card, provided as an embodiment of this application.

[0090] like Figure 2H As shown, after the electronic device detects that a user has entered the riding mode via sensor data, a smart recommendation card can pop up on the display interface. This smart recommendation card can include the prompt message "You have entered the riding mode" and "Do you want to turn on the motion sickness relief function?", as well as the options to turn it on and off. In response to the user's click on the "turn on" option, the motion sickness relief function is activated, and a motion sickness relief animation is displayed.

[0091] Optionally, in response to a user's click on an enabled option, the electronic device can also switch from displaying a smart recommendation card to displaying something like... Figure 2C The motion sickness relief function interface shown guides the user to operate the motion sickness relief function switch and sensitivity control bar.

[0092] In this embodiment of the application, a smart recommendation card can be popped up to guide users to understand and use the motion sickness relief function.

[0093] Method 4

[0094] Figure 2I This is a schematic diagram of the interface for activating the voice-activated motion sickness relief function according to an embodiment of this application.

[0095] like Figure 2I As shown, when the electronic device has its voice wake-up function enabled, if the user says, "Turn on the motion sickness relief function," the electronic device can recognize the corresponding text and display it on the interface. When the user stops inputting voice, the electronic device can then turn on the motion sickness relief function and display a motion sickness relief animation.

[0096] In addition to the activation methods described above, the electronic device can also automatically activate and deactivate the motion sickness relief function based on sensor data. This application embodiment does not limit the activation method of the motion sickness relief function. When the motion sickness relief function is automatically activated, the electronic device can also display a pop-up notification to inform the user that the function has been automatically activated.

[0097] Next, in conjunction with the appendix Figures 3A to 4J The visual style of the motion sickness relief animation provided in this application is described.

[0098] The motion sickness relief animation in this application is designed based on the principles of motion sickness, or more specifically, based on the vestibular system's perception principles. It maps motion information detected by the anterior and posterior semicircular canals, the utricle and saccule, and the horizontal semicircular canals within the user's vestibular system onto the motion sickness relief animation. The motion sickness relief animation provided in this application offers a variety of visual styles to suit different simulation needs and target audiences.

[0099] Motion sickness relief animations are used to simulate different driving states of a vehicle, such as acceleration or deceleration, turning left or right, turning acceleration, up-and-down bumping, up-and-down slopes, and swaying left and right. Of course, the vehicle may also include other driving states, which are not limited in this application embodiment.

[0100] Visual styles for motion sickness relief animations can include water ripple patterns, ocean wave patterns, particle motion patterns, line patterns, board-based (such as roller skates, skateboards, etc.) motion patterns, character motion patterns, track patterns, 2D animation patterns, 3D animation patterns, and so on. Based on the styles introduced here, water ripples, ocean waves, particles (dots), lines, roller skates, skateboards, tracks, etc., are used to simulate the motion trajectory of vehicles under different driving conditions.

[0101] In this embodiment, the element of the motion sickness relief animation is a dot, which is used as an example for illustration.

[0102] like Figure 3A As shown, taking a flat-screen electronic device as an example, two preset areas can be set on the left and right sides of the electronic device to display motion sickness relief animations. Specifically, the first set of dots for the motion sickness relief animation can be displayed in the left preset area, and the second set of dots for the motion sickness relief animation can be displayed in the right preset area.

[0103] For example, such as Figure 3B As shown, a column of dots can be displayed in a preset area on each side, and the multiple dots included in the column of dots can be arranged at intervals along the vertical direction.

[0104] For example, such as Figure 3CAs shown, in the preset area on each side, multiple columns of dots can be displayed along the horizontal direction, and adjacent columns of dots can be staggered.

[0105] It should be understood that the embodiments of this application do not limit the size, position, number of dots, column number, position, etc. of the preset area. For example, the length of the preset area is the same as the length of the screen along the vertical direction, or it is half the length of the screen along the vertical direction.

[0106] Optionally, in the motion sickness relief animation, multiple dots in the preset area can be evenly distributed, or they can be distributed with varying density depending on the vehicle's driving status.

[0107] Optionally, in the motion sickness relief animation, the size of multiple dots in the preset area can be kept consistent, or they can be different sizes depending on the vehicle's driving status.

[0108] Optionally, in the motion sickness relief animation, the transparency of multiple dots in the preset area can be kept consistent, or the transparency can be different depending on the vehicle's driving status.

[0109] It should be understood that, apart from the dot spacing, size, and transparency, the number, arrangement, color, display position, transparency, visual style, movement method, movement speed, and movement effects (such as fade-in / fade-out effect, loop fade-in / fade-out effect, scrolling effect, trailing effect, etc.) of the dots can all be changed according to the different driving states of the vehicle, and the embodiments of this application do not limit this.

[0110] For example, such as Figure 3D As shown, when the vehicle is accelerating or decelerating (along the X-axis), the dot displayed on the screen of the electronic device can move vertically, up or down accordingly. For example, during acceleration, the dot moves down; during deceleration, the dot moves up.

[0111] For example, such as Figure 3E As shown, when the vehicle is changing lanes or turning (along the Y-axis), the dot displayed on the screen of the electronic device can move to the left or right accordingly. For example, when changing lanes to the left or turning left, the dot moves to the right; when changing lanes to the right or turning right, the dot moves to the left.

[0112] For example, such as Figure 3F As shown, when the vehicle is moving up and down (along the Z-axis), the dot displayed on the screen of the electronic device can be enlarged or reduced accordingly. For example, when the vehicle is moving uphill, the dot shrinks; when it is moving downhill, the dot enlarges.

[0113] For example, such as Figure 3GAs shown, when the vehicle is traveling uphill / downhill / incline changes, i.e., rotating along the Y-axis to generate a pitch angle, the dot displayed on the electronic device's screen can move vertically, up or down. For example, when going uphill, the dot moves down; when going downhill, the dot moves up.

[0114] For example, such as Figure 3H As shown, when the vehicle is swaying left and right, that is, rotating along the X-axis to produce a Roll rotation angle, the dots displayed in the preset areas on the left and right sides of the electronic device's screen can move in opposite directions along the vertical axis. For example, when swaying left and right, the dots in the preset area on the left move upwards, and the dots in the preset area on the right move downwards, or vice versa.

[0115] For example, such as Figure 3I As shown, when the vehicle is in a turning state with acceleration (steering angle change), that is, when it rotates along the Z-axis to produce a Yaw rotation angle, the dot displayed on the screen of the electronic device can move left or right accordingly. For example, when turning left, the dot moves to the right; when turning right, the dot moves to the left.

[0116] The above only shows the mapping relationship between different vehicle driving states and a single dot. The following explains the mapping relationship between different vehicle driving states and motion sickness relief animation.

[0117] Animation Effect 1. Motion Suppression Animation: Simulates the animation effect of a vehicle in a stable driving state (such as when the engine is off, the vehicle is stopped, the vehicle is temporarily parked, or the acceleration is small).

[0118] For example, such as Figure 4A As shown, when the electronic device detects that the vehicle is in a stable driving state, a column of dots can be displayed in a preset area on each side. The multiple dots in the column are arranged at intervals in the vertical direction, and all dots have the same size and transparency.

[0119] Optionally, the transparency of all dots can be reduced when the electronic devices detect that the vehicle is in a smooth driving state.

[0120] Optionally, if the electronic device detects that the vehicle is in a stable driving state, a pop-up window can automatically appear after a preset time to prompt the user whether they need to turn off the motion sickness relief function.

[0121] In this embodiment, since the vehicle is in a stable and stationary state, the dots in the simulated motion sickness relief animation appear to be in a stationary motion state.

[0122] Animation Effect 2. Motion Suppression Animation: This animation simulates the motion effects of a vehicle accelerating or decelerating.

[0123] For example, such as Figure 4B As shown, when the electronic device detects that the vehicle is accelerating, the dots on the screen can move downwards vertically. The bottom dot disappears after moving out of the screen, and after the top dot moves downwards, a new dot appears from the upper edge of the preset area, visually creating an animation effect of dots continuously appearing on the screen and moving downwards.

[0124] like Figure 4C As shown, when the electronic device detects that the vehicle is decelerating, the dots on the screen can move upwards vertically. The top dot disappears after moving out of the screen, and the bottom dot moves upwards and then a new dot appears from the lower edge of the preset area, visually creating an animation effect of dots continuously appearing on the screen and moving upwards.

[0125] It should be understood that when a vehicle is accelerating, the greater the acceleration, the faster the dot moves downwards; similarly, when a vehicle is decelerating, the greater the deceleration, the faster the dot moves upwards.

[0126] Optionally, the newly added dots at the top and the disappearing dots at the bottom, or the newly added dots at the bottom and the disappearing dots at the top, can all have a fade-in / fade-out effect; that is, the transparency of the dots changes as they appear or disappear, for example, the transparency is 0 when they disappear and 255 when they are fully displayed, where 0 to 255 is the range of transparency values.

[0127] Optionally, the dots in each preset area may also include multiple columns, and the multiple columns of dots may be staggered. This application embodiment does not limit this, and the display effect can be referred to the above content, which will not be repeated here.

[0128] Optionally, the motion sickness relief animation simulates the animation effect of a vehicle driving on slopes or with varying inclines, similar to animation effect 2 described above. For example, when going uphill, the dot moves downwards; when going downhill, the dot moves upwards. Please refer to the description above for details, which will not be repeated here.

[0129] Animation Effect 3. Motion Suppression Animation simulates the animation effect of a vehicle changing lanes or turning.

[0130] For example, such as Figure 4D As shown, when the electronic device detects that the vehicle is changing lanes to the left or turning left, the dots on the screen can move horizontally to the right. For each preset area, multiple columns of dots move to the right simultaneously, and the rightmost dot disappears after moving out of the preset area. After the leftmost dot moves to the right, a new column of dots appears from the left edge of the preset area, visually creating an animation effect of dots continuously appearing on the screen and moving to the right.

[0131] like Figure 4E As shown, when the electronic device detects that the vehicle is changing lanes to the right or turning right, the dots on the screen can move horizontally to the left. For each preset area, multiple columns of dots move to the left simultaneously, and the leftmost dot disappears after moving out of the preset area, while the rightmost dot moves to the left, displaying a new column of dots from the right edge of the preset area, visually creating an animation effect of dots continuously appearing on the screen and moving to the left.

[0132] It should be understood that when a vehicle is changing lanes to the left or turning left, the greater the angular velocity, the faster the dot moves to the right. Similarly, when a vehicle is changing lanes to the right or turning right, the greater the angular velocity, the faster the dot moves to the left.

[0133] Optionally, for each preset area, the newly added dots on the left and the disappearing dots on the right, or the newly added dots on the right and the disappearing dots on the left, can all have a fade-in / fade-out effect. That is, when the dots appear or disappear, the transparency of the dots changes. For example, the transparency is 0 when they disappear and 255 when they are fully displayed.

[0134] Optionally, the motion sickness relief animation simulates the animation effect of a vehicle in a turning acceleration (steering angle change) state, similar to animation effect 3 above. For example, when turning left, the dot moves to the right; when turning right, the dot moves to the left. Please refer to the above description for details, which will not be repeated here.

[0135] Animation Effect 4: Motion Suppression Animation simulates the animation effect of a vehicle moving up and down in a bumpy driving state.

[0136] For example, such as Figure 4F , Figure 4G and Figure 4H As shown, when the electronic device detects that the vehicle is experiencing a downward bump, the dots on the screen can gradually enlarge. Optionally, the spacing between adjacent dots can increase as the size of the dots increases. For each preset area, the dots disappear after extending beyond the perimeter of the preset area, and new dots appear from the center of the preset area, visually creating an animation effect where dots continuously appear on the screen, enlarge, and spread outwards.

[0137] For example, such as Figure 4H , Figure 4G and Figure 4FAs shown, when the electronic device detects that the vehicle is experiencing an upward bump, the dots on the screen can gradually shrink. Optionally, the spacing between adjacent dots can decrease as the dot size decreases. For each preset area, the dots disappear after shrinking to a certain extent, and new dots appear from around the preset area, visually creating an animation effect where dots continuously appear on the screen, shrinking and converging towards the center of the preset area.

[0138] It should be understood that as the vehicle constantly changes between uphill and downhill bumps, the dot can continuously switch between enlarging and shrinking, creating an animation effect where the size of the dot fluctuates.

[0139] It should also be understood that when a vehicle is traveling downhill and experiencing bumps, the greater the acceleration, the faster the dot expands; similarly, when a vehicle is traveling uphill and experiencing bumps, the greater the acceleration, the faster the dot contracts.

[0140] Optionally, for each preset area, both the disappearing dots and the newly added dots can have a fade-in / fade-out effect, that is, when they appear or disappear, the transparency of the dots changes, for example, the transparency is 0 when they disappear and 255 when they are fully displayed.

[0141] Animation Effect 5. Motion Swaying Relief Animation: This animation simulates the motion of a vehicle swaying from side to side while driving.

[0142] For example, such as Figure 4I As shown, when the electronic device detects that the vehicle is swaying to the left, the dot in the preset area on the left side of the screen can move upward, and the dot in the preset area on the right side can move downward.

[0143] For example, such as Figure 4J As shown, when the electronic device detects that the vehicle is swaying to the right, the dot in the preset area on the left side of the screen can move downwards, and the dot in the preset area on the right side can move upwards.

[0144] It should be understood that when a vehicle is swaying to the left, the greater the angular velocity, the faster the left dot moves upward and the right dot moves downward; similarly, when a vehicle is swaying to the right, the greater the angular velocity, the faster the left dot moves downward and the right dot moves upward.

[0145] For a single preset area, the animation effect of the dots moving up or down can be referred to as animation effect 2 above, and will not be repeated here. When combined, they can present the animation effect 5 of the dots in the preset areas on both sides moving in opposite directions.

[0146] It should be understood that the above illustration uses a candybar screen in portrait mode as an example. The landscape mode is similar and can be referred to in the above description, so it will not be repeated here. Of course, electronic devices can also be foldable devices, and the portrait and landscape modes can both be described in the above description, so it will not be repeated here.

[0147] As described above, during the display of motion sickness relief animations, electronic devices need to acquire and process sensor data in real time. Then, by combining this sensor data with the rendered motion sickness relief animation, the animation is used to map different driving states of the vehicle in real time. Maintaining a high refresh rate on the electronic device's screen and simultaneously rendering the motion sickness relief animation at a high frame rate results in better display quality; however, this may degrade the performance of the electronic device. Therefore, balancing the display quality of the motion sickness relief animation with device performance becomes a problem that needs to be solved.

[0148] In view of this, embodiments of this application provide a frame rate adjustment method, which combines real-time acquired sensor data or determined element parameters of motion sickness relief animation to determine whether the current frame rate needs to be increased or decreased. Thus, when the conditions for increasing or decreasing the frame rate are met, the frame rate can be dynamically adjusted in real time, thereby achieving a dynamic balance between the display effect of motion sickness relief animation and device performance.

[0149] Next, combined Figures 5A to 6C The frame rate adjustment method provided in the embodiments of this application will be described in detail. Figure 5A This is a flowchart illustrating a frame rate adjustment method provided in an embodiment of this application. The method 400 may include the following steps S410 to S430.

[0150] S410. Determine if the current frame rate corresponds to a low frame rate state. If not, proceed to S420; if yes, proceed to S430.

[0151] In the embodiments of this application, such as Figure 5B As shown, the display state of the motion sickness relief animation can be divided into two states: a low frame rate state and a high frame rate state. It should be understood that the low frame rate state and the high frame rate state are relative, and the corresponding frame rate range can be set and adjusted as needed. This application embodiment does not limit this.

[0152] For example, a low frame rate state can indicate a low frame rate, such as 5Hz, 10Hz, etc.; a high frame rate state can indicate a high frame rate, such as 20Hz, 40Hz, 60Hz, etc.

[0153] It should be noted that low frame rate states can include static states, i.e., the frame rate of motion sickness relief animation is 0Hz.

[0154] S420. Determine if the frame rate reduction condition is met? If it is met, reduce the frame rate; otherwise, maintain the current frame rate.

[0155] It should be understood that if the current frame rate does not correspond to a low frame rate state, then if the display state of the motion sickness relief animation is only divided into low frame rate state and high frame rate state, it can be determined that the current frame rate corresponds to the high frame rate state. In this case, only a frame rate reduction operation can be performed to adjust the high frame rate state to a low frame rate state. Therefore, it is necessary to further determine whether the frame rate reduction condition is met in order to perform the frame rate reduction operation.

[0156] Optionally, in one implementation, it can be determined whether the current sensor data meets the frame reduction condition. If the current sensor data meets the frame reduction condition, then the frame rate is reduced to the frame rate corresponding to the low frame rate state; if the frame reduction condition is not met, then the current frame rate is maintained.

[0157] For example, the sensors invoked by an electronic device to generate motion sickness-relieving animations may include hardware sensors and virtual sensors. In this embodiment, the hardware sensor may be an IMU sensor, which may include ACC and GYRO. The virtual sensor may include a rotation vector sensor and a linear acceleration sensor.

[0158] Among them, the rotation vector sensor (Game Rate of Turn Velocity, Game ROTV) can be implemented by fusing data from ACC and GYRO through algorithms, providing three-dimensional rotation vector information about the electronic device, with excellent high-frequency filtering capabilities and good low-frequency motion characteristics. The linear acceleration sensor (Linear Acceleration, Linear ACC) can measure the linear acceleration of the electronic device under gravity-free conditions, with excellent low-frequency filtering capabilities and good high-frequency motion characteristics. The sensor data in the embodiments of this application may include one or more of the data from the accelerometer, gyroscope, rotation vector sensor, and linear acceleration sensor, and this application embodiment does not limit this.

[0159] For example, assuming the sensor data acquired by the electronic device is from an accelerometer, the frame rate reduction condition can be determined by whether the accelerometer data is less than a preset acceleration. If it is less than the preset acceleration, the frame rate reduction condition is met, and a frame rate reduction operation is performed. If it is greater than or equal to the preset acceleration, the frame rate reduction condition is not met, and the current frame rate remains unchanged.

[0160] Alternatively, in another implementation, it can be determined whether the element parameters (such as the movement amount of the dots) included in the motion sickness relief animation in the current frame meet the frame reduction condition. If the element movement amount meets the frame reduction condition, then the frame rate is reduced and the current frame rate is adjusted to the frame rate corresponding to the low frame rate state; if the frame reduction condition is not met, then the current frame rate is maintained.

[0161] For example, an electronic device acquires sensor data through hardware and virtual sensors, and processes the sensor data based on virtual sensors and algorithms to obtain data such as Euler angles, triaxial angular velocity, and triaxial linear acceleration in the horizontal coordinate system. Then, the electronic device loads the elements required for motion sickness relief animation, and calculates the parameters corresponding to each element (such as position, color, transparency, tilt angle, display size, movement direction, movement amount, etc.) based on the sensor data such as Euler angles, triaxial angular velocity, and triaxial linear acceleration in the horizontal coordinate system. Based on one or more of the calculated element parameters, it can be determined whether the frame rate reduction condition is met.

[0162] For example, assuming that after the electronic device acquires sensor data, the calculated element parameter is the element movement amount, then the frame reduction condition can be corresponding to whether the element movement amount is less than a preset movement amount (such as 10 pixels / frame); if it is less than the preset movement amount, it can be said that the frame reduction condition is met and the frame reduction operation is performed; if it is greater than or equal to the preset movement amount, it can be said that the frame reduction condition is not met and the current frame rate remains unchanged.

[0163] S430. Determine if the frame increase conditions are met? If they are met, increase the frame rate; otherwise, maintain the current frame rate.

[0164] It should be understood that if the current frame rate corresponds to a low frame rate state, then only a frame rate increase operation can be performed to adjust the low frame rate state to a high frame rate state. Therefore, it is necessary to further determine whether the frame rate increase conditions are met in order to perform the frame rate increase operation.

[0165] Optionally, in one implementation, it can be determined whether the current sensor data meets the frame-up condition. If the current sensor data meets the frame-up condition, then frame-up is performed, and the current frame rate is adjusted to the frame rate corresponding to the high frame rate state; if the frame-up condition is not met, then the current frame rate is maintained unchanged.

[0166] For example, assuming the sensor data acquired by the electronic device is from an accelerometer, the frame-up condition can be defined as whether the accelerometer data is greater than or equal to a preset acceleration. If it is greater than the preset acceleration, the frame-up condition is met, and a frame-up operation is performed. If it is less than the preset acceleration, the frame-up condition is not met, and the current frame rate remains unchanged.

[0167] Alternatively, in another implementation, it can be determined whether the element parameters (such as the amount of dot movement) included in the motion sickness relief animation in the current frame meet the frame-raising condition. If the element movement meets the frame-raising condition, then the frame is raised, and the current frame rate is adjusted to the frame rate corresponding to the high frame rate state; if the frame-raising condition is not met, then the current frame rate is maintained.

[0168] For example, assuming that after the electronic device acquires sensor data, the calculated element parameter is the element movement amount, then the frame-up condition can be corresponding to whether the element movement amount is greater than or equal to a preset movement amount; if it is greater than the preset movement amount, it can be said that the frame-up condition is met and the frame-up operation is performed; if it is less than the preset movement amount, it can be said that the frame-up condition is not met and the current frame rate remains unchanged.

[0169] In this embodiment of the application, during the display of the motion sickness relief animation, the current frame rate can be determined by combining real-time acquired sensor data or determined element parameters of the motion sickness relief animation. This allows for real-time dynamic adjustment of the frame rate. When the conditions for increasing the frame rate are met, the system can switch to a high frame rate state to provide a better animation display effect; when the conditions for decreasing the frame rate are met, the system can switch to a low frame rate state to reduce the degradation of the electronic device's performance.

[0170] Optionally, in S410 above, it can also be directly determined whether the current frame rate corresponds to a high frame rate state. If not, then S430 is executed to continue determining whether the frame-increasing condition is met, so as to increase the frame rate or maintain the current frame rate; if yes, then S420 is executed to continue determining whether the frame-decreasing condition is met, so as to decrease the frame rate or maintain the current frame rate. The specific process can be referred to the steps in the above method, and will not be repeated here.

[0171] Optionally, such as Figure 5C As shown, after S420, the method 400 may further include the following steps S421 to S423.

[0172] S421. If it is determined in S420 that the frame drop condition is met, then the corresponding counter is used to count the number of times the frame drop condition is met, and the value is increased by 1.

[0173] S422. Determine if the counter's statistical result is N1 consecutive data points that satisfy the frame rate reduction condition; if yes, clear the counter's statistical result and perform the frame rate reduction operation. If no, maintain the current frame rate.

[0174] It should be understood that if N1 consecutive data satisfy the frame reduction condition, the frame reduction operation can be performed first, and then the statistical result of the counter can be cleared, or both can be performed simultaneously. This application embodiment does not limit this.

[0175] S423. If it is determined in S420 that the frame rate reduction condition is not met, the statistical result of the corresponding counter is cleared to zero, and the current frame rate is maintained.

[0176] For example, N1 can be any number such as 1, 3, 10, etc., and this application embodiment does not limit it.

[0177] For example, if N1 is 3, then when the current frame rate is not low but high, the system combines the currently acquired sensor data to determine whether the frame rate reduction condition is met, or uses the calculated element parameters to determine whether the frame rate reduction condition is met. When the frame rate reduction condition is met, the corresponding counter is used to count once. If the count value does not reach 3, such as 1 or 2, the current frame rate is maintained. The frame rate reduction operation is only performed when the count value reaches 3.

[0178] Similarly, such as Figure 5C As shown, after S430, the method 400 may further include the following steps S431 to S433.

[0179] S431. If it is determined in S430 that the frame-raising condition is met, then the corresponding counter is used to count the number of times the frame-raising condition is met, and the value is increased by 1.

[0180] S432. Determine whether the counter's statistical result is N2 consecutive data points that satisfy the frame-up condition; if yes, clear the counter's statistical result and perform the frame-up operation. If not, maintain the current frame rate.

[0181] It should be understood that if N2 consecutive data meet the frame-raising condition, the frame-raising operation can be performed first, and then the statistical result of the counter can be cleared, or both can be performed simultaneously. This application does not limit this.

[0182] S433. If it is determined in S430 that the frame rate increase condition is not met, the statistical result of the corresponding counter is cleared to zero, and the current frame rate is maintained.

[0183] Optionally, the sizes of N2 and N1 can be the same or different, and this application embodiment does not limit this.

[0184] For example, N2 can be any number such as 1, 3, 10, etc., and this application embodiment does not limit it.

[0185] For example, if N2 is 5, then when the current frame rate is low, the frame rate condition is determined by combining the currently acquired sensor data, or by using the calculated element parameters. When the frame rate condition is met, the corresponding counter is used to count once. If the count value does not reach 5, such as any one of 1 to 4, the current frame rate is maintained. The frame rate operation is only performed when the count value reaches 5.

[0186] In this embodiment of the application, in order to avoid errors in the acquired data or judgments and to improve accuracy, a counter can be used to record the number of times the frame reduction condition is met, and the frame reduction operation is performed only after a preset number of times is met; similarly, a counter can be used to record the number of times the frame increase condition is met, and the frame increase operation is performed only after a preset number of times is met.

[0187] Figure 6A This is a flowchart illustrating another frame rate adjustment method provided in an embodiment of this application. The method 500 may include the following steps S510 to S600.

[0188] S510. Determine if the current frame rate corresponds to a low frame rate state. If not, proceed to S520; if yes, proceed to S580.

[0189] In the embodiments of this application, such as Figure 6B As shown, the display state of the motion sickness relief animation can be divided into several states, such as the first refresh state, the second refresh state, the third refresh state, and the low frame rate state. The first refresh state corresponds to the first frame rate range, the second refresh state corresponds to the second frame rate range, and the third refresh state corresponds to the third frame rate range. The frame rates corresponding to the first frame rate range, the second frame rate range, the third frame rate range, and the low frame rate state decrease sequentially.

[0190] For example, the first refresh state corresponds to a frame rate range greater than 60Hz, the second refresh state corresponds to a frame rate range greater than 40Hz to less than 60Hz, the third refresh state corresponds to a frame rate range greater than 20Hz to less than 40Hz, and the low frame rate state corresponds to a frame rate range of 0Hz to 20Hz.

[0191] It should be noted that low frame rate states can include static states, i.e., the frame rate of motion sickness relief animation is 0Hz.

[0192] S520. Determine if the current frame rate corresponds to the first refresh state. If yes, execute S530; otherwise, execute S540.

[0193] It should be understood that if the current frame rate does not correspond to a low frame rate state, it may correspond to any one of the first refresh state, the second refresh state, and the third refresh state. In this embodiment, the frame rate can be determined in descending order to determine whether the current frame rate corresponds to the first refresh state. If the first refresh state is not met, the current frame rate is further determined to determine whether it corresponds to the second refresh state. If the second refresh state is not met, the current frame rate is further determined to determine whether it corresponds to the third refresh state.

[0194] In another embodiment, the frame rate can be determined in ascending order. First, it is determined whether the current frame rate corresponds to the third refresh state. If the third refresh state is not met, the current frame rate is further determined to be the second refresh state. If the second refresh state is not met, the current frame rate is further determined to be the first refresh state.

[0195] Optionally, after determining the corresponding first refresh state, such as Figure 6C As shown, step S610 can be added, such as determining whether the fourth frame reduction condition is met. If it is met, the frame is directly raised from the first refresh state to the third refresh state; if it is not met, S530 is executed.

[0196] S530. Determine if the first frame rate reduction condition is met. If it is met, reduce the frame rate to the second refresh state; otherwise, maintain the current frame rate.

[0197] It should be understood that if the current frame rate corresponds to the first refresh state, then based on the content introduced in S420, it can be determined whether the data meets the first frame reduction condition based on the current sensor data or the determined element parameters. If the current sensor data or element parameters meet the first frame reduction condition, then the frame rate is reduced. At this time, in order to avoid excessive differences in display effect, a small frame rate reduction can be performed, that is, it can be reduced from the first refresh state to the second refresh state.

[0198] S540. Determine whether the current frame rate corresponds to the second refresh state. If yes, execute S550; otherwise, execute S560.

[0199] S550: Determine if the second frame rate reduction condition is met? If it is met, reduce the frame rate to the third refresh state; otherwise, maintain the current frame rate.

[0200] It should be understood that if the current frame rate corresponds to the second refresh state, then based on the content introduced in S420, it can be determined whether the data meets the second frame reduction condition based on the current sensor data or the determined element parameters. If the current sensor data or element parameters meet the second frame reduction condition, then the frame rate is reduced. At this time, in order to avoid excessive differences in display effect, a small frame rate reduction can be performed, that is, it can be reduced from the second refresh state to the third refresh state.

[0201] It should be noted that the first frame reduction condition and the second frame reduction condition are different, and the specific values ​​can be set as needed. This application embodiment does not limit this.

[0202] S560. Determine if the current frame rate corresponds to the third refresh state. If so, execute S570.

[0203] It should be noted that if the current frame rate does not correspond to the low frame rate state, nor to the first refresh state or the second refresh state, then it is not necessary to make a judgment to determine that the current frame rate corresponds to the third refresh state. That is, step S560 can also be omitted. When it is determined in step S540 that the current frame rate does not correspond to the second refresh state, step S570 is executed directly.

[0204] S570. Determine if the third frame rate reduction condition is met. If it is met, reduce the frame rate to a low frame rate; otherwise, maintain the current frame rate.

[0205] It should be understood that if the current frame rate corresponds to the third refresh state, then based on the content introduced in S420, it can be determined whether the data meets the third frame rate reduction condition. If the current sensor data or element parameters meet the third frame rate reduction condition, then the frame rate is reduced, and at this time, it can be reduced from the third refresh state to the low frame rate state.

[0206] It should be noted that the first frame reduction condition, the second frame reduction condition, and the third frame reduction condition are different, and the specific values ​​can be set as needed. This application embodiment does not limit this.

[0207] S580. Determine if the first frame-raising condition is met. If it is met, raise the frame to the third refresh state and execute S590; if it is not met, maintain the current frame rate.

[0208] It should be understood that if the current frame rate corresponds to a low frame rate state, only a frame increase operation can be performed. Therefore, based on the content introduced in S430, it can be determined whether the current sensor data or the determined element parameters meet the first frame increase condition. If the current sensor data or element parameters meet the first frame increase condition, then a frame increase is performed. At this time, in order to avoid excessive differences in display effect, a small frame increase can be performed, that is, the frame rate can be adjusted from the low frame rate state to the third refresh state first, and then it can be determined whether further frame increase is needed.

[0209] Optionally, after raising the frame to the third refresh state, step S570 can be added to further determine whether the third frame reduction condition is met in order to perform frame reduction.

[0210] Optionally, after raising the frame to the third refresh state, such as Figure 6CAs shown, step S620 can be added to determine whether the fourth frame-raising condition is met. If it is met, the frame is directly raised from the third refresh state to the first refresh state; if it is not met, S590 is executed.

[0211] S590. Determine if the second frame-raising condition is met. If it is met, raise the frame to the second refresh state and execute S600; if it is not met, maintain the current frame rate.

[0212] It should be understood that after the frame rate is increased to the third refresh state, in order to improve the display effect, it is possible to continue to determine whether the data meets the second frame increase condition. If the current sensor data or element parameters meet the second frame increase condition, then the frame is increased. At this time, in order to avoid the display effect from changing too much, a small frame increase can be performed, that is, the system can be adjusted from the third refresh state to the second refresh state first, and then it can be determined whether further frame increase is needed.

[0213] Optionally, after raising the frame to the second refresh state, step S550 can be added to further determine whether the second frame reduction condition is met in order to perform frame reduction.

[0214] S600: Determine if the third frame-up condition is met? If it is met, then increase the frame to the first refresh state; if not, maintain the current frame rate.

[0215] It should be understood that after the frame rate is increased to the second refresh state, in order to improve the display effect, it is possible to continue to determine whether the data meets the third frame-up condition. If the current sensor data or element parameters meet the third frame-up condition, then frame-up is performed, and at this time, it can be adjusted from the second refresh state to the first refresh state.

[0216] Optionally, after raising the frame to the first refresh state, step S530 can be added to further determine whether the first frame reduction condition is met in order to perform frame reduction.

[0217] In this embodiment, during the display of the motion sickness relief animation, real-time sensor data or determined element parameters of the motion sickness relief animation can be used to determine whether the current frame rate needs to be increased or decreased. Thus, the frame rate can be dynamically adjusted in real time. When the conditions for increasing the frame rate are met, the system can switch to a relatively higher frame rate to provide a better animation display effect; when the conditions for decreasing the frame rate are met, the system can switch to a relatively lower frame rate to reduce the degradation of the electronic device's performance.

[0218] In this embodiment of the application, in order to avoid errors in the acquired data or judgments and to improve accuracy, a counter can be used to record the number of times the first frame reduction condition, the second frame reduction condition, the third frame reduction condition, or the fourth frame reduction condition is met, and the frame reduction operation is performed only after a preset number of times is met; similarly, a counter can also be used to record the number of times the first frame increase condition, the second frame increase condition, the third frame increase condition, or the fourth frame increase condition is met, and the frame increase operation is performed only after a preset number of times is met.

[0219] In addition, the counter that records the number of times the frame-up condition is met and the counter that records the number of times the frame-down condition is met can be the same counter or different counters. This application embodiment does not limit this.

[0220] Please see Figure 7 , Figure 7 This is a schematic diagram of the software structure of an electronic device as illustrated in an embodiment of this application. The software system of the electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the application uses the layered architecture Android system as an example to illustrate the software structure of the electronic device.

[0221] It should be understood that a layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces.

[0222] like Figure 7 As shown, the Android system can be divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer can include a series of application packages.

[0223] like Figure 7 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, motion sickness relief app, etc.

[0224] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0225] like Figure 7 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0226] The window manager is used to manage windowed applications. It can obtain the screen / display size of the electronic device, determine if a status bar is present, and control features such as motion sickness relief animations and floating displays.

[0227] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0228] A view system includes visual controls, such as controls for displaying text, controls for displaying images, and controls for displaying motion blur / soothing animations. View systems can be used to build applications. A display interface can consist of one or more views.

[0229] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0230] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, animation files, and so on.

[0231] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0232] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0233] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0234] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0235] The system library can include multiple functional modules, such as: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES for embedded systems) and 2D graphics engines (e.g., Skia graphics library (SGL)).

[0236] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0237] The media library supports playback and recording of various audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multi-rate (AMR), Joint Photographic Experts Group (JPG), and Portable Network Graphics (PNG).

[0238] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0239] A 2D graphics engine is a graphics engine for 2D drawing.

[0240] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0241] Among them, sensor driving provides the foundation for electronic devices to acquire sensor data.

[0242] In the embodiments of this application, the electronic device can utilize the above-described software system to implement the frame rate adjustment method shown in the embodiments corresponding to the foregoing figures.

[0243] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0244] Please see Figure 8 , Figure 8 This is a schematic diagram of the hardware structure of an electronic device illustrated in an exemplary embodiment of this application.

[0245] like Figure 8 As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0246] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more than Figure 8 The components shown may include more or fewer components, or the electronic device 200 may include... Figure 8 The components shown may be a combination of certain components, or the electronic device 200 may include... Figure 8 Sub-components of some of the components shown. Figure 8 The components shown can be implemented in hardware, software, or a combination of both.

[0247] The processor 210 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU).

[0248] The processor 210 may also include a memory for storing instructions and data.

[0249] In embodiments of this application, processor 210 can execute various steps of the frame rate adjustment method. For example, processor 210 can run the software code of the frame rate adjustment method provided in embodiments of this application, thereby alleviating motion sickness in users.

[0250] Electronic device 200 can implement display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU can also be used to perform mathematical and pose calculations, and for graphics rendering, etc. Processor 210 may include one or more GPUs, whose executed program instructions can generate or modify display information.

[0251] In this embodiment of the application, the ability of the electronic device 200 to display the display interface and motion-relieving animation shown in the foregoing figures depends on the display functions provided by the GPU, the display screen 294, and the application processor.

[0252] In some embodiments, the electronic device 200 may include one or N displays 294, where N can be a positive integer greater than 1.

[0253] The display screen 294 in this embodiment can be a touch screen. The display screen 294 may integrate a touch sensor 280K. The touch sensor 280K can also be referred to as a "touch panel." That is, the display screen 294 may include a display panel and a touch panel, with the touch sensor 280K and the display screen 294 forming a touch screen, also called a "touchscreen." The touch sensor 280K is used to detect touch operations applied to or near it. After the touch sensor 280K detects a touch operation, it can be passed to the upper layer by the kernel layer driver (such as the TP driver) to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor 280K may also be disposed on the surface of the electronic device 200, in a different location than the display screen 294.

[0254] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.

[0255] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 200 by running the instructions stored in internal memory 221.

[0256] In addition, the internal memory 221 may include high-speed random access memory; the internal memory 221 may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0257] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. When a touch operation is applied to display screen 294, electronic device 200 detects the intensity of the touch operation based on pressure sensor 280A. Electronic device 200 can also calculate the touch position based on the detection signal from pressure sensor 280A. In some embodiments, different touch positions but different touch durations can correspond to different operation commands.

[0258] The gyroscope sensor 280B can detect the magnitude of the angular velocity of electronic device 200 in various directions (generally the X-axis, Y-axis and Z-axis).

[0259] The accelerometer 280E can detect the magnitude of acceleration of electronic device 200 in various directions (typically the X-axis, Y-axis, and Z-axis).

[0260] In this embodiment, the electronic device 200 may further include a virtual sensor, a virtual sensor rotation vector sensor and a linear acceleration sensor. The virtual sensor is used to process the data collected by the acceleration sensor 280E and the gyroscope sensor 280B to determine the angle information of the electronic device 200 under different motion states of the vehicle.

[0261] Motor 191 can generate vibrations to provide users with real-time tactile feedback.

[0262] In addition, various types of operating systems run on these components. Examples include Android, iOS, Symbian, BlackBerry, Linux, and Windows. This is merely illustrative and not intended to be limiting. Different applications, such as any application that supports voice chat, can be installed and run on these operating systems.

[0263] The frame rate adjustment method provided in this application embodiment can be implemented in an electronic device 200 having the above-described hardware structure.

[0264] The foregoing has detailed examples of the frame rate adjustment method provided in the embodiments of this application. It is understood that, in order to achieve the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0265] This application embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0266] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0267] The electronic device provided in this embodiment is used to execute the above-described frame rate adjustment method, and therefore can achieve the same effect as the above-described implementation method.

[0268] When using integrated units, the electronic device may further include a processing module, a storage module, and a communication module. The processing module is used to control and manage the operation of the electronic device. The storage module supports the execution of stored program code and data. The communication module supports communication between the electronic device and other devices.

[0269] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a WiFi chip, or other devices that interact with other electronic devices.

[0270] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the frame rate adjustment method of any of the above embodiments.

[0271] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the frame rate adjustment method described in the above embodiments.

[0272] This application also provides a chip. Please refer to [link / reference]. Figure 9 , Figure 9 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Figure 9 The chip shown can be a general-purpose processor or a dedicated processor. The chip includes a processor 310. The processor 310 is used to execute the frame rate adjustment method of any of the above embodiments.

[0273] Optionally, the chip also includes a transceiver 320, which is used to receive control from the processor and to support the communication device in executing the aforementioned technical solution.

[0274] Optionally, Figure 9 The chip shown may also include: storage medium 330.

[0275] It should be noted that, Figure 9The chip shown can be implemented using one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.

[0276] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0277] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0278] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0279] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0280] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0281] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0282] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A frame rate adjustment method, characterized in that, Applied to electronic devices, the method includes: Determine if the current frame rate corresponds to a low frame rate state; If not, determine whether the acquired current data meets the frame rate reduction condition. If it does, reduce the frame rate; if not, maintain the current frame rate. If so, determine whether the current data meets the frame rate increase conditions. If it does, increase the frame rate; if not, maintain the current frame rate. The current data includes sensor data or motion sickness relief animation element parameters, both of which are used to map the driving status of the electronic device in real time.

2. The method according to claim 1, characterized in that, After determining whether the current data meets the frame reduction condition, the method further includes: If the frame rate reduction condition is not met, the value of the first counter is cleared to zero, and the current frame rate is maintained. If the frame reduction condition is met, the first counter is used to count the number of times the frame reduction condition is met, and the value is incremented by 1. Determine if N1 consecutive data points satisfy the frame rate reduction condition. If yes, clear the value of the first counter and reduce the frame rate; otherwise, maintain the current frame rate.

3. The method according to claim 2, characterized in that, After determining whether the current data meets the frame-raising conditions, the method further includes: If the frame rate increase condition is not met, the value of the second counter is cleared to zero, and the current frame rate is maintained. If the frame-raising condition is met, the second counter is used to count the number of times the frame-raising condition is met, and the value is incremented by 1. Determine if N2 consecutive data points satisfy the frame-up condition. If yes, clear the value of the second counter and upload the frame; otherwise, maintain the current frame rate.

4. The method according to any one of claims 1 to 3, characterized in that, The frame reduction conditions include a first frame reduction condition, a second frame reduction condition, and a third frame reduction condition; After determining that the current frame rate does not correspond to the low frame rate state, the method further includes: Does the current frame rate correspond to the first refresh state? If it is the first refresh state, then determine whether the current data meets the first frame rate reduction condition. If yes, then reduce the frame rate to the second refresh state; if no, then maintain the current frame rate. If it is not the first refresh state, then determine whether the current frame rate corresponds to the second refresh state? If it is the second refresh state, then determine whether the current data meets the second frame rate reduction condition. If yes, then reduce the frame rate to the third refresh state; if no, then maintain the current frame rate. If it is not the second refresh state, then the current frame rate is determined to be the third refresh state; When the third refresh state is reached, it is determined whether the current data meets the third frame rate reduction condition. If yes, the frame rate is reduced to the low frame rate state; otherwise, the current frame rate is maintained.

5. The method according to claim 4, characterized in that, The frame-raising conditions include a first frame-raising condition, a second frame-raising condition, and a third frame-raising condition. After determining that the current frame rate corresponds to the low frame rate state, the method further includes: Does the current data meet the first frame-up condition? If yes, then advance the frame to the third refresh state; otherwise, maintain the current frame rate. After advancing the frame to the third refresh state, determine whether the current data meets the second frame advance condition. If yes, advance the frame to the second refresh state; otherwise, maintain the current frame rate. When a frame is boosted to the second refresh state, it is determined whether the current data meets the third frame boosting condition. If yes, the frame is boosted to the first refresh state; otherwise, the current frame rate is maintained.

6. The method according to claim 4 or 5, characterized in that, The frame rates corresponding to the first refresh state, the second refresh state, the third refresh state, and the low frame rate state decrease sequentially.

7. The method according to any one of claims 4 to 6, characterized in that, The frame rate reduction condition further includes a fourth frame rate reduction condition. After determining that the current frame rate corresponds to the first refresh state, the method further includes: Does the current data meet the fourth frame reduction condition? If yes, reduce the frame to the third refresh state; if no, determine whether the current data meets the first frame reduction condition.

8. The method according to any one of claims 5 to 7, characterized in that, The frame-raising condition also includes a fourth frame-raising condition. After raising the frame to the third refresh state, the method further includes: Does the current data meet the fourth frame-promotion condition? If yes, then promote the frame to the first refresh state; if no, then determine whether the current data meets the second frame-promotion condition.

9. The method according to any one of claims 1 to 8, characterized in that, The low frame rate state includes a static state, which indicates that the frame rate of the motion sickness relief animation is 0Hz.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: Acquire the sensor data; Based on the sensor data, determine the element parameters in the motion sickness relief animation; The sensor data includes at least one of the following: data from an accelerometer, data from a gyroscope, data from a rotation vector sensor, and data from a linear accelerometer. The element parameters include at least one of position, display size, movement direction, and movement amount.

11. The method according to any one of claims 1 to 10, characterized in that, The driving state includes at least: Accelerating or decelerating forward and backward, turning left and right, turning acceleration, bumping up and down, going up and down slopes, swaying left and right.

12. An electronic device, characterized in that, include: One or more processors; one or more memories; The memory stores one or more programs that, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 to 11.

13. A chip, characterized in that, include: A processor for retrieving and running a computer program from memory, causing an electronic device on which the chip is mounted to perform the method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the method of any one of claims 1 to 11.