CN109101324A - Method of adjustment, operating system and the AR equipment of application state - Google Patents

Method of adjustment, operating system and the AR equipment of application state Download PDF

Info

Publication number
CN109101324A
CN109101324A CN201710469545.0A CN201710469545A CN109101324A CN 109101324 A CN109101324 A CN 109101324A CN 201710469545 A CN201710469545 A CN 201710469545A CN 109101324 A CN109101324 A CN 109101324A
Authority
CN
China
Prior art keywords
application
state
resource
turned
computing resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710469545.0A
Other languages
Chinese (zh)
Inventor
张哲�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710469545.0A priority Critical patent/CN109101324A/en
Publication of CN109101324A publication Critical patent/CN109101324A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application provides a kind of method of adjustment of application state, device and augmented reality equipment, wherein, method of adjustment includes: to change in response to having been turned on the state of application in the AR equipment, determines total expected computing resource that the current state of application is had been turned on described in maintaining;Judge whether the practical computing resource of the AR equipment meets total expected computing resource;If it is not, having been turned on the application state of application described in adjustment then according to the principle for reducing total expected computing resource.Using the embodiment of the present application, the state that application is had been turned in AR equipment can be adjusted from the current demand of user.It is thereby achieved that while meeting user's current demand, the practical computing resource of AR equipment maintain after adjustment state using required total expected computing resource.

Description

Method of adjustment, operating system and the AR equipment of application state
Technical field
This application involves augmented reality field, in particular to a kind of method of adjustment of application state, operating system;With And a kind of method of adjustment of application state, adjustment application.
Background technique
Augmented reality (Augmented Reality, AR) technology, be in the certain time spatial dimension by real world very The information that difficulty is experienced, for example, visual information, acoustic information etc., pass through the real generation that is added to again after scientific and technical analog simulation Boundary is perceived by human sensory, to reach the sensory experience of exceeding reality.Augmented reality AR equipment by head-mounted display, with Three components of track AR equipment and mobile computing ability are constituted, these three components are integrated into a unit, and be placed on and use belt In the equipment of binding, this equipment is exactly AR equipment.
AR equipment can be wirelessly by information dissemination to being similar on the display of glasses, for example, having on AR equipment People just drive a car on road, at this point, on the display of AR equipment, show be consistent with present road scene using with It is selected for user, for example, navigation software icon, music software icon etc..Under normal circumstances, user can select a variety of applications, At this point, a variety of applications selected by user can all start in AR equipment, in response to user's operation, the application that is had been turned in AR equipment It is converted in standby mode, operating status and dormant state.
For example, having been turned on using standby mode is initially entered, at this point, not shown on the display of AR equipment in AR equipment The content of application, AR equipment consume less computing resource to judge whether the application needs to enter run mode;It is run when meeting When the trigger condition of state, for example, triggering user's operation, at this point, application enters run mode, shown on the display of AR equipment Run content.When application is in standing-by state, run mode or dormant state, AR equipment is the computing resource difference using distribution, Wherein, AR equipment is that the application of run mode distributes more computing resource.
Summary of the invention
Present inventor has found under study for action, under the conditions of AR equipment limited computing resource, has opened when in AR equipment After dynamic, application in different states expection computing resource has exceeded the practical computing resource of AR equipment, it will lead to certain The operational effect of application cannot be met the needs of users, and influence user experience.Therefore, when the practical computing resource of AR equipment cannot Maintenance has been turned on using when expection computing resource, AR equipment being needed to adjust the state for having been turned on application needed for current state It is whole, so that the computing resource of AR equipment meets the expection computing resource of the application after adjustment state, and answering after adjustment state With the current demand that can satisfy user.
Based on this, this application provides a kind of method of adjustment of application state, which has been turned in AR equipment When the expection computing resource of application exceeds the practical computing resource of AR equipment, AR equipment is according to the current operation feelings for having been turned on application Condition is adjusted the state for having been turned on application, so that the practical computing resource of AR equipment meets the application after adjustment state It is expected that computing resource, and the application after adjustment state can satisfy the current demand of user.
Present invention also provides a kind of adjustment device of application state, to guarantee above method realization in practice and Using.
To solve the above-mentioned problems, this application discloses a kind of method of adjustment of application state, the method for adjustment applications In the operating system of augmented reality AR equipment, the method for adjustment includes:
State in response to having been turned on application in the AR equipment changes, and calculates and has been turned on working as application described in maintaining Total expected computing resource needed for preceding state;The state needs the computing resource distributed to correspond to each other with the AR equipment;Sentence Whether the practical computing resource for the AR equipment of breaking meets total expected computing resource;If it is not, then described total pre- according to reducing The principle of phase computing resource has been turned on the application state of application described in adjustment.
Disclosed herein as well is a kind of operating system, the operating system is integrated in augmented reality AR equipment, the operation System includes:
Computing unit calculates described in maintaining for changing in response to the state for having been turned on application in the AR equipment Have been turned on total expected computing resource needed for the current state of application;The calculating that the state and the AR equipment need to distribute provides Source corresponds to each other;Judging unit is provided for judging whether the practical computing resource of the AR equipment meets total expected calculate Source;Adjustment unit, in the case where the result of the judging unit is no, according to reducing total expected computing resource Principle has been turned on the application state of application described in adjustment.
Disclosed herein as well is a kind of method of adjustment of application state, the method for adjustment is applied to the tune of augmented reality AR Whole application, the method for adjustment include:
The adjustment application detects whether other states for having been turned on application change;If there is a change, then it calculates Total expected computing resource of the current state of application is had been turned on described in maintenance;The meter that the state and the AR equipment need to distribute Resource is calculated to correspond to each other;Judge whether the practical computing resource of the AR equipment meets total expected computing resource;If no Meet, then according to the principle for reducing total expected computing resource, the application state of application is had been turned on described in adjustment.
Disclosed herein as well is a kind of adjustment application of application state, the adjustment application is installed on augmented reality AR equipment On, the adjustment application includes:
Detection unit, for detecting whether the state that other have been turned on application changes;Computing unit, for described The result of detection unit is then to calculate the total expected meter for the current state that application is had been turned on described in maintaining in the case where changing Calculate resource;The state needs the computing resource distributed to correspond to each other with the AR equipment;Judging unit, for judging the AR Whether the practical computing resource of equipment meets total expected computing resource;If conditions are not met, then according to reduction total expection The principle of computing resource has been turned on the application state of application described in adjustment.
Disclosed herein as well is a kind of readable medium, which, which is stored with, executes augmented reality AR equipment for answering With the adjustment programme of state, the processing the following steps are included:
Detecting step, will test whether the state that other have been turned on application changes;Step is calculated, is being become In the case where change, total expected computing resource that the current state of application is had been turned on described in maintaining is calculated;The state and the AR The computing resource that equipment needs to distribute corresponds to each other;Judgment step judges whether the practical computing resource of the AR equipment is full Foot total expected computing resource;Set-up procedure, in ungratified situation, according to reduction total expected computing resource Principle has been turned on the application state of application described in adjustment.
Disclosed herein as well is a kind of augmented reality AR equipment, comprising: processor and memory;
The memory, for storing program instruction and/or data;The processor, for reading in the memory The instruction and/or data of storage execute following operation:
The adjustment application detects whether other states for having been turned on application change;If there is a change, then it calculates Total expected computing resource of the current state of application is had been turned on described in maintenance;The meter that the state and the AR equipment need to distribute Resource is calculated to correspond to each other;Judge whether the practical computing resource of the AR equipment meets total expected computing resource;If no Meet, then according to the principle for reducing total expected computing resource, the application state of application is had been turned on described in adjustment.
Compared with prior art, the application includes following advantages:
In the embodiment of the present application, when the application state in AR equipment changes, if the practical calculating of AR equipment provides Source cannot maintain to have been turned on using required total expected computing resource, AR equipment then to meet user's current demand under the premise of, Reducing to have been turned in AR equipment applies required total expected computing resource for principle, to adjust the shape for having been turned on application in AR equipment State.Since the embodiment of the present application is from the current demand of user, the state that application is had been turned in AR equipment is adjusted.Cause This, the embodiment of the present application may be implemented while meeting user's current demand, and the practical computing resource of AR equipment maintains adjustment After state using required total expected computing resource.
Certainly, any product for implementing the application does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the life cycle schematic diagram that the application applies in practical applications;
Fig. 2 is an exemplary process diagram of the method for adjustment embodiment of the application state of the application;
Fig. 3 is the flow chart of step 203 in the present processes embodiment;
Fig. 4 is the block schematic illustration of the adjustment Installation practice of the application state of the application;
Fig. 5 is the hardware structural diagram of the AR equipment of the application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In actual application scenarios, the developer of AR equipment be all according to certain rules come program realize application function Can, this rule is exactly application framework.Specifically, application framework defines the life cycle of application, the life cycle of application can To include the opportunity of AR equipment calls application code and execute the sequence of application code, for the life applied as defined in application framework The period is ordered, it can be with reference view 1.Application framework can be preset in the operating system of AR equipment, in os starting When, the life cycle of each application can be read from application framework, call the opportunity of application code and execution to answer to learn With the sequence of code.
From fig. 1, it can be seen that the life cycle of application may include " normal Standby state ", " minimum standing-by state ", " operate normally State ", " minimum run mode ", and " dormant state ".When wherein, using " normal Standby state " or " minimum standing-by state " is in, application Content do not show that AR equipment is distributed less computing resource and supplied using and AR equipment may determine that in AR equipment Using whether need enter " normal state " or " minimum run mode ";Using in " normal state " or " minimum run mode " When, the operation content of application is completely shown in AR equipment, at this point, AR equipment distributes more computing resource to be made for application With;When using being in " dormant state ", using not being run, it is waken up when waiting the available free computing resource of AR equipment.
In practice, application framework is other than the life cycle of given application, it further provides that each application is in " normal Standby Frame per second needed for state ", " minimum standing-by state ", " normal state ", and " minimum run mode ".Frame per second (Frame rate) is to use In the measurement of measurement display frame number, so-called measurement unit is display frame number per second (Frames per Second, FPS) or " conspicuous Hereby " (Hz).AR equipment is in " normal Standby state ", " minimum standing-by state ", " normal state " according to each application program, and Frame per second needed for " minimum run mode " can calculate each application and be in " normal Standby state ", " minimum standing-by state ", " normal fortune Computing resource needed for row state ", and " minimum run mode ".Under normal circumstances, " minimum standing-by state " is needed than " normal Standby state " The computing resource wanted is less, and " minimum run mode " is also less than the computing resource that " normal state " needs.
For example, the application being currently up in AR equipment is respectively broadcasting Video Applications, music application, and, chat application. Where it is assumed that playing, Video Applications are currently at " minimum run mode ", music application is currently at " normal Standby state ", and chat is answered With being currently at " dormant state ";Since three kinds of application state in which are different, the calculating that AR equipment is distributed by three kinds of applications is provided Source is also different, also, most to play the computing resource that Video Applications are distributed, the computing resource time distributed by music application It, the computing resource distributed by chat application is minimum.Certainly, AR equipment may be that the music in " normal Standby state " is answered With the more computing resources of broadcasting video of distribution ratio " minimum run mode ", can come according to actual demand for each state assignment Corresponding computing resource.
Realize that the cardinal principle being adjusted to the state of application is in the embodiment of the present application, since application framework regulation is each Using frame per second needed for having unique current state and each state at any time.Therefore, AR equipment working as according to application Frame per second needed for preceding state and current state works as AR to count computing resource needed for maintenance has been turned on the current state of application When the computing resource of equipment cannot maintain to have been turned on using required computing resource, AR equipment to meet user's current demand, with And the real resource of current AR equipment can maintain after adjustment state to be principle using required computing resource, to having been turned on The state of some applications in is adjusted.
For example, applying the computing resource consumed at " normal state " most, then in this case, if AR equipment Need to save computing resource, can will using from current state " normal state " be adjusted to dbjective state " normal Standby state " or " minimum run mode ";And in the case where the current state of application is " minimum run mode ", it can will apply and adjust to target-like State " normal Standby state ";And in the case where the current state of application is " normal Standby state ", then it can will apply and be adjusted to mesh Mark state " minimum standing-by state ";And in the case where the current state of application is " minimum standing-by state ", then it can will apply from " most Small standing-by state " is adjusted to dbjective state " dormant state ".As it can be seen that by that will be adjusted to expend than current state using from current state The dbjective state of less computing resource, to play the purpose for saving the practical computing resource of AR equipment.
Wherein, the application in the embodiment of the present application installs in AR equipment, can be realized a certain function Software program.For example, payment application, may be implemented the payment function in internet business, Alipay, wechat payment can be Deng;Music application may be implemented the online or local playing function of song, absolute music etc., can be KuGoo music, QQ music Deng.Certainly, the application in the embodiment of the present application is also not necessarily limited to above several, can be mounted in AR equipment in practical applications real The software program of existing a certain concrete function is all in the application category of the embodiment of the present application.
With reference to Fig. 2, a kind of flow chart of the method for adjustment embodiment of application state of the application is shown, the present embodiment can be with Applied to the operating system of AR equipment, the present embodiment be may comprise steps of:
Step 201: the state in response to having been turned on application in the AR equipment changes, and calculates and has been turned on described in maintaining Total expected computing resource needed for the current state of application;The state and the computing resource that AR equipment needs to distribute are mutually right It answers.
In the present embodiment, when the state for having been turned on application in AR equipment changes, for example, some applications are according to life State in period is converted, some applications are exited, alternatively, some applications are activated, so that the application state in AR equipment Changed.At this point, AR equipment frame per second according to needed for maintaining respectively to have been turned on the current state of application, is respectively answered to count to meet Computing resource required for current state.It will respectively have been turned on and add up using computing resource needed for current state again, It calculates AR equipment and remains all and have been turned on using total computing resource needed for current state, this total computing resource is known as total pre- Phase computing resource.
For example, AR equipment detects that new application is activated, it is assumed that the applications having been turned on all at this time have 3, point It is not to play Video Applications, music application and chat application.Wherein, Video Applications are played and is currently at minimum run mode, sound Happy application is currently at normal state, and chat application is currently at normal state.AR equipment is worked as according to this 3 applications of maintenance Frame per second needed for preceding state, to calculate maintenance this 3 using computing resource needed for current states.
It is assumed that it is 10M that AR equipment, which calculates computing resource needed for maintaining to play the current minimum run mode of Video Applications, Computing resource needed for the normal state for maintaining music application current is 20M, the normal state for maintaining chat application current Required computing resource is 10M.At this point, maintenance, which is calculated, in AR equipment plays Video Applications, music application and chat application Current state needed for total expected computing resource be 40M.
It is above-mentioned by taking 3 Video Applications, music application and chat applications as an example, illustratively describe AR equipment according to respectively answering With the frame per second of current state, calculates and maintain each process using computing resource needed for current state.In actual application, generally In the case of, the application having been turned in AR equipment has more, at this point, AR equipment is according to the current state for having been turned on application, Calculate the process for maintaining to have been turned on total expected computing resource using current state, it is similar with the method for above-mentioned example, this In repeat no more.
Step 202: judge whether the practical computing resource of the AR equipment meets total expected computing resource, if it is not, 203 are then entered step, if so, entering step 204.
In the present embodiment, maintenance institute has been calculated according to frame per second needed for using current state is had been turned in AR equipment There is total expected computing resource needed for the current state for having been turned on application.In this step, AR equipment needs basis to be calculated Total expected computing resource and the current actually available computing resource of AR equipment, to judge the practical calculating money of current AR equipment Whether source meets total expected computing resource, i.e. the current actually available computing resource portion of AR equipment calculates money not less than always expected Source indicates that the practical computing resource of AR equipment can satisfy total expected computing resource, subsequently enters step 204;If AR equipment is worked as When preceding actually available computing resource is less than total expected computing resource, it is total pre- to indicate that the practical computing resource of AR equipment is not able to satisfy Phase computing resource, subsequently enters step 203.
For example, it is 1G that AR equipment, which is calculated maintenance and has been turned on using total expected computing resource needed for current state, when The preceding actual available resources of AR equipment are 800M, since 800M is less than 1G, the practical computing resource of current AR equipment cannot Meet total expected computing resource, enters step 203.
Step 203: according to the principle for reducing total expected computing resource, application is had been turned on described in adjustment applies shape State.
In the present embodiment, when the practical computing resource of AR equipment cannot maintain to have been turned on total expection using current state When computing resource, AR equipment adjusts the state that application is had been turned in AR equipment to reduce total expected computing resource as principle.Tool Body, stateful rule is preset in AR equipment, and target corresponding to the current state of each application is determined according to this state rule State, and the corresponding objective function of each dbjective state is called to adjust using from current state to dbjective state to trigger.
When determining the corresponding dbjective state of current state according to state rule, for example, if having been turned on the current shape of application When state is " normal state ", corresponding dbjective state can be " normal Standby state ";If having been turned on the current state of application When for " minimum run mode ", corresponding dbjective state can be " normal Standby state ";If the current state for having been turned on application is When " normal Standby state ", corresponding dbjective state can be " minimum standing-by state ";And if having been turned on the current state of application When for " minimum standing-by state ", corresponding dbjective state can be " dormant state ".
Certainly, the above state rule is only example, and preset state rule only needs to follow dbjective state in AR equipment It is less than the computing resource that current state needs.After obtaining dbjective state, the AR equipment query dbjective state is corresponding , preset objective function, and triggered by way of invocation target function and enter dbjective state using from current state.Example Such as, when adjusting from normal state to minimum run mode, the operation of objective function requestDegrade is triggered, if return value For " true ", indicates that the application is agreed to degrade (being downgraded to standing-by state from normal state), then can be adjusted to from normal state Normal Standby state;And if return value is " false ", it indicates that the application disagrees degradation, then can be applied in normal state Adjustment, i.e., be adjusted to minimum run mode from normal state.
It is understood that one and target-like can be executed after it will apply and be adjusted to dbjective state from current state State relative to call back function, to notify the application to be adjusted to dbjective state.For example, that will apply from " normal fortune When row state " is adjusted to " minimum run mode ", call back function " onDegrade " can be executed, to notify that the application is current In minimum run mode, etc..
Step 204: the application that dormant state is in application is had been turned on described in wake-up.
When the practical computing resource satisfaction of AR equipment is greater than total expected computing resource, AR equipment works as wake-up Before have been turned on application in be in dormant state application.For example, AR equipment detect user currently exit it is certain in application, also, AR equipment detect actually available computing resource in addition to maintain have been turned on using computing resource needed for current state other than, also When remaining computing resource, AR equipment will wake up in the application of " dormant state ".
Using the method for the embodiment of the present application, first determine to have been turned on the target application that adjustment state is needed in application To meet the needs of user is current, meanwhile, reduce and has been turned on using required total expected computing resource, so that the meter of AR equipment Calculate resource can both maintain after adjustment state using required computing resource, and do not influence the experience of user.
In practical applications, AR equipment is worked as in the dbjective state according to set by preset state rule with meeting user Preceding demand, also, reducing total expected computing resource is principle, is adjusted to the state for having been turned on application in AR equipment, specifically The realization process of step 203 can refer to Fig. 3, show the flow chart of step 203 in the application embodiment of the method, step 203 It may comprise steps of:
Step 301: the difference conduct calculated between total expected computing resource and the practical computing resource need to save money Source, and, resource can be saved using from the expection that current state is adjusted to dbjective state by having been turned on described in calculating.
Due to the practical computing resource in AR equipment be not able to satisfy it is all have been turned on total expected calculate money using required When source, AR equipment is it needs to be determined that the state for having been turned on which of application application needs to adjust, so that the practical calculating of AR equipment Resource can maintain the application after adjustment state.
Specifically, AR equipment during determining the application for needing to adjust state, maintains to have been turned on firstly, it is necessary to determine Difference between total expected computing resource and the practical computing resource of AR equipment needed for the current state of application, i.e. AR equipment tune The resource of required saving in the present embodiment is known as that resource need to be saved by the resource saved needed for whole application state;Then, AR Equipment saves resource according to the need being calculated, and to determine the application for needing to adjust state in the application having been turned on, i.e. target is answered With.
During determining target application, AR equipment need according to preset state rule, calculating respectively have been turned on using from When current state is adjusted to dbjective state, it is contemplated that savable resource will respectively have been turned on using corresponding pre- in the present embodiment Phase savable resource, which is known as expection, can save resource.
Specifically, the expection that calculating respectively has been turned on application can save resource, it can be by AR equipment for using current state institute The computing resource of distribution, subtracts, the computing resource that AR equipment is distributed by application target state, and obtained difference is the application Corresponding expection can save resource.For example, if the current state for having been turned on application is " normal state ", corresponding target-like State is " normal Standby state ".Specifically, AR equipment is applies the computing resource distributed in " normal state ", and for application Difference between the computing resource that " normal Standby state " is distributed, the expection as the application can save resource.
Step 302: according to it is described need to save resource, the expection for having been turned on application can save resource using between the time Every, determine described in have been turned on and need the target application of adjustment state in application.
AR equipment is after obtaining need to saving resource and can save resource with the expection for respectively having been turned on application, in this step, root Resource, which need to be saved, according to this can save resource with the expection for respectively having been turned on application, and, the use time interval respectively applied, to determine Have been turned on the target application for needing to adjust state in application.Specifically, using time interval for indicating: user's last time uses each Time interval at the time of having been turned on application between current time.
In practical applications, the realization process of step 302 may include step B1~step B10:
Step B1: each normal state application that current state in application is normal state is had been turned on described in acquisition.
Since in AR equipment, some are applied when current state is " normal state ", which is what user provided Service can also be realized under " normal Standby state ", if also, will be using being adjusted to " normal Standby state " from " normal state " Afterwards, more resource can also be saved to AR equipment.Therefore, AR equipment needs to adjust answering for state in determining have been turned in application The application that used time, first consideration current state are " normal state ".So in the present embodiment, AR equipment, which first obtains, have been opened Current state is the application of " normal state " in dynamic application, these are applied referred to as normal state application.
Step B2: resource can be saved using corresponding each expection according to each normal state, each normal state is calculated and answers Total expection can save resource.
After acquisition has been turned on the normal state application that current state in application is " normal state ", in this step, foundation For each normal state using when being adjusted to dbjective state " normal Standby state " from " normal state ", corresponding each expection can save money Source, the total expection for calculating each normal state application can save resource.
Step B3: judge total expection can save resource whether be less than it is described need to save resource, if it is lower, enter step Rapid B4, if it is not, entering step B5.
In the present embodiment, total expection of each normal state application can save resource and need to save the size relation between resource, It determines and determines the mode for having been turned on the target application for needing adjustment state in application.If total expection, which can save resource, which to be less than, needs to save Resource shows to set when by all normal states using " normal Standby state " is adjusted to from current " normal state " for AR Having been turned on using required computing resource, in this feelings after making AR equipment maintain adjustment state not enough for the resource saved Under condition, it is also necessary to from normal state application other than other have been turned on application in determine target application, detailed process can with reference to step Rapid B4.If total expection can save resource not less than that need to save resource, show if applying all normal states from current " normal When run mode " is adjusted to " normal Standby state ", the resource saved by AR equipment, after AR equipment can be made to maintain adjustment state It has been turned on using required computing resource, in this case it is necessary to which determination needs to adjust answering for state from normal state application With detailed process can refer to step B5.
Step B4: being determined as first part's target application for the adjustable application of state in the application of each normal state, and, according to The expection for having been turned on application except first part's target application can save the product size of resource and time interval, determine Second part target application terminates process.
Since the practical computing resource in AR equipment is not able to satisfy the total expected computing resource having been turned on using current state When, AR equipment considers that the state by the application that current state is " normal state " is adjusted to " normal Standby state " first.But Different user is different to the current demand of application, therefore, the application of AR equipment be divided into again state can reconcile state it is non-adjustable this two The application of seed type.Under normal circumstances, the developer of application is had been turned in the program code of application, is provided with one section of instruction generation Code, when in AR equipment triggering operation, this applies corresponding instruction code, operation result can indicate whether the application can be from " just Normal run mode " is adjusted to " normal Standby state ".
For example, the application for being currently at " normal state " in AR equipment, which has, plays Video Applications, music application.General feelings Under condition, it is larger to play computing resource required when Video Applications broadcasting video, therefore developer is pre- in AR equipment operation program If when code command, the operation result of this section of code command can be configured to be adjusted to " just from " normal state " Normal standing-by state ".Certainly, the developer for playing Video Applications can also configure operation result to adjust from " normal state " Whole is " normal Standby state ".And for music application, when playing music, required computing resource is just answered than playing video With smaller, therefore developer is in AR equipment operation program when pre-set code instruction, can be by the operation knot of this section of code command Fruit is configured to be adjusted to from " normal state " " normal Standby state ".Certainly, the developer of music application can also will transport Row result is configured to be adjusted to from " normal state " " normal Standby state ".
Therefore, whether AR equipment can be adjusted to " normal Standby from " normal state " to determine that each normal state is applied State " can be separately operable each normal state using preset one section of code command in application, and can be by it by operation result expression The normal state application that " normal Standby state " is adjusted to from " normal state " is determined as first part's target application.Wherein, institute is removed The dbjective state for stating the normal state application outside first part's target application is adjusted to " minimum run mode ".
It is determining first part's target application and then is having been turned on application according to except first part's target application Expection can save the product size of resource and time interval, determine second part target application.Specifically, can be according to described First part's resource that first part's target application is saved first calculates resource and the first part's resource of need to saving Difference, and, application is respectively had been turned in addition to first part's target application, each expection is calculated and resource and use can be saved The product of time interval, it is described can be with using time interval are as follows: at the time of user's last time uses the application and between current time Time interval;According still further to the sequence of each product from big to small, the second part target application for meeting the difference is determined.
Specifically, AR equipment, which calculates first part's target application, is adjusted to " normal Standby state " when institute from " normal state " First part's resource of saving.Resource need to be saved since first part's resource is less than, AR equipment, which then calculates, need to save money Difference between source and first part's resource, the difference illustrate: AR equipment need to from addition to first part's target application Determined in starting application, the savable resource of second part target application.In the present embodiment, for removing first part's target Normal state application except, dbjective state are determined as " minimum run mode ", and therefore, corresponding expection can save resource use The computing resource that AR equipment is distributed for " normal state ", with the computing resource that AR equipment is distributed for " minimum run mode " Difference.
And for the application that has been turned on other than normal state is applied, AR equipment continues to provide according to preset state rule Dbjective state, resource can be saved to calculate expection, and calculate other than first part's target application other have been turned on The use time interval of application, this using time interval for indicate current time and user's last time using at the time of the application it Between time interval, this reflects the size of application value using time interval.Wherein, time interval is bigger, shows on user It is secondary longer using the time at the time of application apart from current time, also indicate that the application is smaller to the application value of user;When Between be spaced it is smaller, show user's last time using the applications distances current time time it is shorter, also indicate that the application to user's Application value is bigger.
In the present embodiment, the expection of application can save resource and the ratio of application value is defined as the value that degrades, from drop It can be concluded that, the value that degrades is inversely proportional with application value, i.e., application value is bigger in the definition of grade value, and the value that degrades is smaller; Application value is smaller, and the value that degrades is bigger.Again because application value is inversely proportional with time interval, so, degrade value and time It is spaced directly proportional.Therefore, it is directly proportional to expection can to save resource for the degradation value of application, directly proportional to time interval, for table Show that the value that degrades, expection can save the relationship of resource and time interval, the degradation value in the present embodiment can be expressed as pre- Phase can save the product of resource and time interval.
It should be noted that the value that degrades is it is merely meant that can to save resource to expection directly proportional, it is directly proportional to time interval, The form that embodies between resource, with time interval can be saved for the value that degrades, expection, those skilled in the art can root It is determined according to actual conditions, and resource and the product of time interval this form can be saved by being not limited to expection used herein To indicate the value that degrades.
It, will be according to degradation after calculating other degradations for having been turned on application other than first part's target application and being worth The sequence of value from big to small arranges each application, and determines a certain number of second according to vertical sequence Partial objectives for application, the second part target application should match with the difference that need to save resource and first part's resource. For example, the application of such as degradation Maximum Value is, using A, savable resource is 10M, and the big application of degradation value time is to answer With B, savable resource is 8M, and resource difference is 15M, then the second part target application determined in this case is application A and B.Finally, after AR equipment determines first part's target application and second part target application, then first part's target is answered It is to need to adjust the target application of state with the intersection with second part target application.
Step B5: the expection for calculating each normal state application can save the product size of resource and time interval, according to product Sequence from big to small selects the application to be determined of fixed number.
Each expection for calculating each normal state application in this step can save resource and the product using time interval, that is, count Calculate the degradation value of each normal state application.After calculating each normal state using corresponding degradation value, it is worth according to each degradation Sequence from big to small, determines the normal state application of fixed number, and the normal state of the fixed number using it is corresponding can Saving computing resource, which need to meet, need to save resource.For example, degradation Maximum Value and time big being using savable resource summation 12M, and need to save resource is 15M, and make a price reduction Maximum Value, it is secondary big and third using savable resource summation be 15M, then In this step determine application to be determined be exactly degrade value ranking first three three application.It is understood that because this step AR equipment has no knowledge about whether these three applications are the adjustable application of state in rapid, so these three applications are not final mesh Mark application.
Step B6: judging whether the corresponding total saving resource of the adjustable application to be determined of state meets described need to save money Source;If it is satisfied, then B7 is entered step, if conditions are not met, then entering step B8.
Then, AR equipment is separately operable preset one section of code command, AR equipment in application to be determined and presets generation according to this The operation result of code instruction, the application of available adjustable state, and each expection for calculating the application of adjustable state can save The summation of resource-saving can be referred to as second part resource, and judge whether second part resource meets and need to save resource, if When second part resource satisfaction need to save resource, B7 is entered step;If second part resource is unsatisfactory for that resource need to be saved, into Enter step B8.
Step B7: determining target application from the adjustable application to be determined of the state, terminates process.
When second part resource satisfaction need to save resource, at this point, the corresponding Part III of second part resource is waited for really Fixed application, is determined as target application.Specifically, if second part resource just meets target application, it can be by whole The adjustable application to be determined of state is as target application, can be according to each if need to save resource more for second part resource ratio The degradation of a adjustable application to be determined of state is worth, and need to be saved the application of those of resource to choose to meet just as target and is answered With.
Step B8: the application to be determined of the adjustable whole of state is determined as Part III target application, and calculates the need It saves resource and total difference for saving resource is used as to supplemental resources.
And if second part resource is unsatisfactory for, it is, for example, less than that need to save resource, it is at this time that state is adjustable all to true Fixed application is first determined as Part III target application.Because second part resource is unsatisfactory for that resource need to be saved, illustrate Part III The state of target application is also unable to satisfy after adjustment need to save resource, therefore, it is also desirable to which resource and described the need to be saved The difference of two part resources is used as to supplemental resources, then determines another part target application.
Step B9: it is anticipated that resource and the product sequence from big to small using time interval can be saved, from described the The application for choosing fixed number in each normal state application except three parts target application again is used as application to be determined, and judges just Whether normality application, which is chosen, finishes, if not, return step B6, up to the application of adjustable state in normal state application It is corresponding save resource and meet described need to save resource;If it is, entering step B10.
Then, the size order of the degradation value then according to the application of each normal state, in addition to Part III target application In normal state application, selection meets the part for waiting for supplemental resources and applies as application to be determined, continues to judge that these are waited for really Whether the state applied surely is adjustable, and using the adjustable application to be determined of state as Part IV target application;Then by third Partial target applies the resource saved with Part IV target application as that can save resource, and AR equipment, which calculates, need to save money Source and the difference between resource can be saved, continued in the normal state in addition to Part III target application and Part IV target application In, the application to be determined for meeting difference is determined, and so on, it can until need to save resource and each section target application Save resource difference be not more than 0, i.e., each section target application save resource satisfaction need to save resource until;Though alternatively, The resource of saving of the target application of right each section is unsatisfactory for that resource need to be saved, but normal state application program was all selected, Then enter step B10.
Step B10: having been turned on application from addition to normal state is applied, it is anticipated that resource can be saved and using between the time Every product sequence from big to small, determine the target application for wherein needing adjustment state.
And it is finished if normal state application has all been chosen, and the normal state of adjustable state applies saved resource When still less than resource need to be saved, then other in addition to normal state is applied are had been turned on into application, according to degrade value from greatly to Small sequence determines the target application for wherein needing adjustment state.Specifically, for all adjustable shapes in normal state application State application composition each section target application, calculate the saved resource of each section target application, and calculate need to save resource and This difference is known as second part resource to be saved, then, from normal state by the difference between the saved resource of each section target application It is had been turned in application using in addition other, according to the degradation value sequence from big to small of each application, determines satisfaction second The application of part resource to be saved, and by this certain applications and each section target application determined from normal state application, all It is determined as needing to adjust the target application of state in the present embodiment.
It is then returned to step 303: by way of calling the call back function of dbjective state corresponding to the target application, The target application is adjusted to dbjective state from current state.
After obtaining needing to adjust the target application of state, AR equipment applies corresponding target-like by invocation target The target application is adjusted to dbjective state from current state by the mode of the call back function of state.
For example, applying the normal state that state can be adjusted to " normal Standby state " in target application from current " normal state " is adjusted to " normal Standby state ", by cannot be adjusted to state " normal Standby state " in target application Normal state is applied from current " normal state " and is adjusted to " minimum run mode ";It is the mesh of " minimum run mode " by current state The state of mark application is adjusted to " normal Standby state ";The state for the target application that current state is " normal Standby state " is adjusted to " minimum standing-by state ";Alternatively, the state for the target application that current state is " minimum standing-by state " is adjusted to " dormant state ".
In actual scene, if the state of the target application of " minimum standing-by state " is adjusted to " dormant state ", AR equipment User can also be given to send a prompt information, this prompt information is for prompting user " i.e. will be application from minimum standing-by state tune Whole is dormant state " etc..
The present embodiment, which judges to obtain the total expection for having been turned on application in AR equipment, can save resource not less than need to save resource When, AR equipment can save the product of resource Yu the time interval according to need to save resource, respectively have been turned on the expection of application, come true Surely the target application of state need to be adjusted.As it can be seen that each application in AR equipment can be optimized by the degradation value for calculating application Behavior and resource allocation, enable a user to experience more effectively services in limited resource.
The embodiment of the present application also provides a kind of method of adjustment of application state, it is existing which can be applied to enhancing Using upper, the method for adjustment may comprise steps of C1~step C4 for the adjustment of real AR equipment:
Step C1: adjustment application detects whether other states for having been turned on application change, the state and the AR The computing resource that equipment needs to distribute corresponds to each other.
In this step, adjustment application is the APP for being installed on AR equipment, is mounted with after the APP in AR equipment, What user can detect that other installed in the AR equipment have been started up by activating or opening the APP has been turned on application State.Specifically, the adjustment application can respectively have been turned on application by obtaining the operating parameter that other have been turned on application to determine State whether change.It is determined for example, obtaining and having been turned on using the system resource of the AR equipment occupied, if occupy System resource increases suddenly from zero, indicates that the application has been started up;Alternatively, illustrating this if the system resource occupied reduces It is " normal Standby state " etc. using from " normal state " variation.Those skilled in the art in advance occur the state of each application The variation of the corresponding system resource of variation is configured.
Step C2: total expected computing resource that the current state of application is had been turned on described in maintaining is calculated.
Adjustment application detects that other have been turned on after the state of application changes, then calculates maintenance and have been turned on application Current state, AR equipment total expected computing resource.Certainly, if other shapes for having been turned on application are not detected in adjustment application State changes, then can not execute step C2.
Specifically, the detailed process for calculating total expected computing resource can refer to the introduction of step 201, it is no longer superfluous herein It states.
Step C3: judge whether the practical computing resource of the AR equipment meets total expected computing resource;If no Meet, then enters step C4.
Then, adjustment application judges whether the practical computing resource of AR equipment is able to satisfy total expected calculate being calculated and provides Source can enter step C5 if be able to satisfy, if conditions are not met, then entering step C4.Specifically, the realization of this step can With the introduction with reference to step 202, details are not described herein.
Step C4: according to the principle for reducing total expected computing resource, the application state of application is had been turned on described in adjustment.
Then, the principle applied according to total expected computing resource is reduced is adjusted, has been turned on answering for application described in adjustment Use state.Specifically, the realization of this step can refer to introduction shown in Fig. 3, details are not described herein.
Step C5: the application for having been turned on and being in dormant state in application is waken up.
When the practical computing resource of AR equipment meets total expected computing resource, adjustment application, which can wake up, currently to be had been turned on The application of dormant state is in.For example, adjustment application detects that user currently exits certain in application, also, detecting For actually available computing resource other than maintaining to have been turned on using computing resource needed for current state, there are also remaining calculating to provide When source, adjustment application will wake up in the application of " dormant state ", so that the application in " dormant state " also can be the use of AR equipment Family service.
For the aforementioned method embodiment, for simple description, therefore, it is stated as a series of action combinations, still Those skilled in the art should understand that the application is not limited by the described action sequence, because according to the application, it is certain Step can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is described in the specification Embodiment belong to preferred embodiment, necessary to related actions and modules not necessarily the application.
Referring to fig. 4, present invention also provides a kind of operating system embodiments, and in the present embodiment, which can be with It is integrated in AR equipment, the component of the operating system may include:
Computing unit 401 determines for changing in response to the state for having been turned on application in the AR equipment and maintains institute State total expected computing resource needed for the current state for having been turned on application;The calculating that the state and the AR equipment need to distribute Resource corresponds to each other.
Judging unit 402 is provided for judging whether the practical computing resource of the AR equipment meets total expected calculate Source.
Adjustment unit 403, for being counted according to total expection is reduced in the case where the result of the judging unit is no The principle of resource is calculated, the application state of application is had been turned on described in adjustment.
Wherein, the adjustment unit 403 can specifically include:
First computation subunit is made for calculating the difference between total expected computing resource and the practical computing resource For resource need to be saved;Second computation subunit is adjusted to dbjective state using from current state for calculating each described have been turned on Expection can save resource;First determine subelement, for according to it is described need to save resource, the expection can save resource and make With time interval, determine described in have been turned on the target application that adjustment state is needed in application, it is described to use time interval are as follows: Yong Hushang The secondary time interval used at the time of respectively having been turned on application between current time;With adjustment subelement, for by calling institute The target application is adjusted to target from current state by the mode for stating the call back function of dbjective state corresponding to target application State.
Wherein, second computation subunit, can specifically include:
Second determination subelement has been turned on application described in determination for the state relation according to as defined in preset state rule Current state corresponding to dbjective state;The state includes: normal state, minimum run mode, normal Standby state, minimum Standing-by state and dormant state;With, third subelement, provided for calculating needed for having been turned on the current state of application described in maintaining Source, and difference between computing resource needed for having been turned on the dbjective state of application described in maintenance is determined as described have been turned on and answers It is expected that resource can be saved.
Wherein, the third determines subelement, specifically can be used for:
When the current state for having been turned on application is normal state, it is determined that the dbjective state for having been turned on application For normal standing-by state;When the current state for having been turned on application is minimum run mode, it is determined that the mesh for having been turned on application Mark state is normal standing-by state;When the current state for having been turned on application is normal standing-by state, determine that the dbjective state is Minimum standing-by state;Alternatively, determining that the dbjective state is suspend mode when the current state for having been turned on application is minimum standing-by state State.
Wherein, described first determine that subelement can specifically include:
Subelement is obtained, described to have been turned on current state in application be that each normal state of normal state is answered for obtaining With;
Computation subunit, for resource can be saved using corresponding expection according to each normal state, described in calculating Total expection of each normal state application can save resource;
First judgment sub-unit described need to save resource for judging that total expection can save resource and whether be less than;
First processing subelement, for the result of first judgment sub-unit be less than in the case where, will it is each normally State application in the adjustable application of state be determined as first part's target application, and, according to first part's target application it The outer expection for having been turned on application can save the product size of resource and time interval, determine second part target application;And
First processing subelement, for the result of first judgment sub-unit be not less than in the case where, according to each The expection of normal state application can save resource and the product size using time interval, select the to be determined of fixed number and answer With;And judges whether the corresponding total saving resource of the adjustable application to be determined of state meets and described need to save resource;If it is satisfied, Target application is then determined from the adjustable application to be determined of the state.
Wherein, described first determine that subelement specifically can also include:
4th determines subelement, for the application to be determined of the adjustable whole of state to be determined as Part III target application;
Subelement is chosen, for choosing fixed number from each normal state application except the Part III target application Application be used as application to be determined;
Second judgment sub-unit, for judging whether the corresponding total saving resource of the adjustable application to be determined of state meets institute Resource need to be saved by stating;
5th determine subelement, for the result of second judgment sub-unit be meet in the case where, from it is described to It determines and determines Part IV target application in application, and the Part III target application and Part IV target application are made For target application;
Third judgment sub-unit is in ungratified situation, according to pre- for the result in second judgment sub-unit Phase can save resource and the product sequence from big to small using time interval, from each except the Part III target application The application for choosing fixed number in normal state application again is used as application to be determined, and judges whether normal state application is chosen and finish;
Trigger subelement, for the result of the third judgment sub-unit be it is unselected take finish in the case where, triggering the Two judgment sub-units, until adjustable state using corresponding resource of saving meets the need in normal state application Save resource;And
6th determines subelement, in the case where the result of the third judgment sub-unit is to choose to finish, from removing Application is had been turned on other than normal state application, it is anticipated that product from big to small suitable of resource with use time interval can be saved Sequence determines the target application for wherein needing adjustment state.
Wherein, it is described first processing subelement, be specifically used for: first judgment sub-unit result be less than feelings Under condition, the adjustable application of state in the application of each normal state is determined as first part's target application, and, according to described first Partial objectives for applies saved part resource, calculates the difference that need to save resource Yu the part resource, and, for removing Application is respectively had been turned on outside first part's target application, resource and the product using time interval can be saved by calculating expection;According to The sequence of each product from big to small determines the second part target application for meeting the difference.
Wherein, the adjustment device can also include:
Wakeup unit, for waking up the application having been turned in application in dormant state.
Using the operating system of the embodiment of the present application, determine to have been turned on the target application that adjustment state is needed in application, i.e., It can satisfy the current demand of user, meanwhile, reduce and has been turned on using required total expected computing resource, so that AR equipment Computing resource can both maintain after adjustment state using required computing resource, and do not influence the experience of user.
The embodiment of the present application also provides a kind of adjustment application of application state, the adjustment application can be installed on enhancing Real AR, each unit that the adjustment is applied may include:
Detection unit, for detecting whether the state that other have been turned on application changes.Computing unit, for described The result of detection unit is then to calculate the total expected meter for the current state that application is had been turned on described in maintaining in the case where changing Calculate resource;The state needs the computing resource distributed to correspond to each other with the AR equipment.Judging unit, for judging the AR Whether the practical computing resource of equipment meets total expected computing resource.And adjustment unit, in the judging unit Result be, according to the principle for reducing total expected computing resource, to have been turned on application described in adjustment in ungratified situation Application state.
The embodiment of the present application also provides a kind of readable medium, which, which is stored with, executes augmented reality AR equipment For the adjustment programme of application state, the processing the following steps are included:
Detecting step, will test whether the state that other have been turned on application changes;Step is calculated, is being become In the case where change, total expected computing resource that the current state of application is had been turned on described in maintaining is calculated;The state and the AR The computing resource that equipment needs to distribute corresponds to each other;Judgment step judges whether the practical computing resource of the AR equipment is full Foot total expected computing resource;Set-up procedure, in ungratified situation, according to reduction total expected computing resource Principle has been turned on the application state of application described in adjustment.
Fig. 5 is a kind of hardware structural diagram of AR equipment 500 in the embodiment of the present application.AR equipment 500 can be used for realizing The adjustment of application state.I.e. AR equipment 500 can be used for executing the method provided in above-described embodiment.In the present embodiment, AR is set Standby 500 include: processor 501, memory 502, network interface 503 and bus system 504.
The bus system 504, for each hardware component of AR equipment 500 to be coupled.
The network interface 503, for realizing the communication connection between AR equipment 500 and at least one other AR equipment, Internet, wide area network, local network, the modes such as Metropolitan Area Network (MAN) can be used.
The memory 502, for storing program instruction and/or data.
The processor 501, for reading the instruction and/or data that store in memory 502, the following operation of execution:
State in response to having been turned on application in the AR equipment changes, and calculates and has been turned on working as application described in maintaining Total expected computing resource needed for preceding state;The state needs the computing resource distributed to correspond to each other with the AR equipment;
Judge whether the practical computing resource of the AR equipment meets total expected computing resource;
If it is not, having been turned on the application state of application described in adjustment then according to the principle for reducing total expected computing resource.
Wherein, the processor 501 can also be performed to give an order:
Wherein, described according to the principle for reducing total expected computing resource, application is had been turned on described in adjustment applies shape State may include: that the difference conduct calculated between total expected computing resource and the practical computing resource need to save resource, with And each described have been turned on of calculating can save resource using from the expection that current state is adjusted to dbjective state;It needs to save according to described Resource-saving, the expection can save resource and use time interval, and the target that adjustment state is needed in application is had been turned on described in determination Using described to use time interval are as follows: user's last time used between time at the time of respectively having been turned on application between current time Every;By way of calling the call back function of dbjective state corresponding to the target application, by the target application from current State is adjusted to dbjective state.
Wherein, each described have been turned on of the calculating can save money using from the expection that current state is adjusted to dbjective state Source may include: the state relation according to as defined in preset state rule, have been turned on corresponding to the current state of application described in determination Dbjective state;The state includes: normal state, minimum run mode, normal Standby state, minimum standing-by state and dormant state; By computing resource needed for the current state for having been turned on application described in maintenance, and the dbjective state of application is had been turned on described in maintenance Difference between required computing resource, resource can be saved by being determined as the expection for having been turned on application.
Wherein, the state relation according to as defined in preset state rule, determine described in have been turned on the current state of application Corresponding dbjective state, may include: the current state for having been turned on application be normal state when, it is determined that it is described The dbjective state of starting application is normal standing-by state;When the current state for having been turned on application is minimum run mode, it is determined that The dbjective state for having been turned on application is normal standing-by state;When the current state for having been turned on application is normal standing-by state, Determine the dbjective state for minimum standing-by state;Alternatively, being determined when the current state for having been turned on application is minimum standing-by state The dbjective state is dormant state.
Wherein, described to save resource according to described, the expection for having been turned on application can save resource and use the time Interval, determine described in have been turned in application and need the target application of adjustment state, may include: obtain described in have been turned in application when Preceding state is each normal state application of normal state;Money can be saved using corresponding expection according to each normal state Source, the total expection for calculating each normal state application can save resource;Judge that total expection can save whether resource is less than institute Resource need to be saved by stating;If it is less, the adjustable application of state in the application of each normal state is determined as first part's target application, And the product of resource and time interval can be saved according to the expection for having been turned on application except first part's target application Size determines second part target application;If it is not, resource then can be saved according to the expection that each normal state is applied and used The product size of time interval selects the application to be determined of fixed number;And judge that the adjustable application to be determined of state is corresponding Total saving resource whether meet and described need to save resource;If it is satisfied, then from the adjustable application to be determined of the state really Set the goal application.
Wherein, it is unsatisfactory for described to save money if the corresponding total expection of the adjustable application to be determined of state can save resource Source, the processor 501 can also be performed to give an order: the application to be determined of the adjustable whole of state is determined as Part III mesh Mark application;The application of fixed number is chosen from each normal state application except the Part III target application as to be determined Using, judge the corresponding total saving resource of the adjustable application to be determined of state whether meet it is described need to save resource, if it is satisfied, Then determine Part IV target application from the application to be determined, and by the Part III target application and Part IV Target application is as target application;If conditions are not met, then it is anticipated that resource can be saved with the product using time interval from big To small sequence, that chooses fixed number again from each normal state application except the Part III target application applies conduct Application to be determined, and judge whether normal state application is chosen and finish;If it is unselected take it is complete, execute judgement state it is adjustable to Determine whether meet described the step of need to saving resource using corresponding total savings resource, until normal state apply in can be with Adjustment state using it is corresponding save resource and meet described need to save resource;If selection finishes, answered from except normal state With in addition have been turned on application, it is anticipated that resource and the product sequence from big to small using time interval can be saved, determine Wherein need the target application of adjustment state.
Wherein, the expection having been turned on according to except first part's target application can save between resource and time Every product size, determine second part target application, may include: the portion saved according to first part's target application Divide resource, calculates the difference that need to save resource Yu the part resource, and, in addition to first part's target application Application is respectively had been turned on, resource and the product using time interval can be saved by calculating expection;According to the sequence of each product from big to small, Determine the second part target application for meeting the difference.
In the case that the practical computing resource of the AR equipment meets the expected computing resource, alternatively, in response to user It exits described have been turned in application, the processor 501 can also be performed to give an order: having been turned in application and be in described in wake-up The application of dormant state.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Detailed Jie has been carried out to the method for adjustment of application state provided herein, operating system and AR equipment above It continues, specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above embodiments is only It is to be used to help understand the method for this application and its core ideas;At the same time, for those skilled in the art, according to this Shen Thought please, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is the limitation to the application.

Claims (13)

1. a kind of method of adjustment of application state, which is characterized in that the method for adjustment is applied to the behaviour of augmented reality AR equipment Make system, the method for adjustment includes:
State in response to having been turned on application in the AR equipment changes, and calculates the current shape that application is had been turned on described in maintaining Total expected computing resource needed for state;The state needs the computing resource distributed to correspond to each other with the AR equipment;
Judge whether the practical computing resource of the AR equipment meets total expected computing resource;
If it is not, having been turned on the application state of application described in adjustment then according to the principle for reducing total expected computing resource.
2. the method according to claim 1, wherein described according to the original for reducing total expected computing resource Then, the application state of application is had been turned on described in adjustment, comprising:
The difference conduct calculated between total expected computing resource and the practical computing resource need to save resource, and, it calculates Each described have been turned on can save resource using from the expection that current state is adjusted to dbjective state;
Resource need to be saved, the expection can save resource and uses time interval according to described, is had been turned in application described in determination Need to adjust the target application of state, it is described to use time interval are as follows: user's last time using at the time of respectively having been turned on application with it is current Time interval between moment;
By way of calling the call back function of dbjective state corresponding to the target application, by the target application from current State is adjusted to dbjective state.
3. according to the method described in claim 2, it is characterized in that, each described have been turned on of the calculating is applied from current state tune The whole expection to dbjective state can save resource, comprising:
According to state relation as defined in preset state rule, target-like corresponding to the current state of application is had been turned on described in determination State;The state includes: normal state, minimum run mode, normal Standby state, minimum standing-by state and dormant state;
By computing resource needed for the current state for having been turned on application described in maintenance, and the target of application is had been turned on described in maintenance Difference between computing resource needed for state, resource can be saved by being determined as the expection for having been turned on application.
4. according to the method described in claim 3, it is characterized in that, it is described according to preset state rule as defined in state relation, Dbjective state corresponding to the current state of application is had been turned on described in determination, comprising:
When the current state for having been turned on application is normal state, it is determined that the dbjective state for having been turned on application is positive Normal standing-by state;
When the current state for having been turned on application is minimum run mode, it is determined that the dbjective state for having been turned on application is positive Normal standing-by state;
When the current state for having been turned on application is normal standing-by state, determine the dbjective state for minimum standing-by state;Alternatively,
When the current state for having been turned on application is minimum standing-by state, determine that the dbjective state is dormant state.
5. according to the method described in claim 4, it is characterized in that, it is described according to it is described need to save resource, described have been turned on is answered It is expected that resource can be saved and use time interval, the target application that adjustment state is needed in application, packet are had been turned on described in determination It includes:
Each normal state application that current state in application is normal state is had been turned on described in acquisition;
Resource can be saved using corresponding expection according to each normal state, calculates total expection of each normal state application Resource can be saved;
Judging that total expection can save resource and whether be less than described need to save resource;
If it is less, the adjustable application of state in the application of each normal state is determined as first part's target application, and, according to The expection for having been turned on application except first part's target application can save the product size of resource and time interval, determine Second part target application;
If it is not, resource then can be saved according to the expection that each normal state is applied and using the product size of time interval, selected Take out the application to be determined of fixed number;And judge whether the corresponding total saving resource of the adjustable application to be determined of state meets institute Resource need to be saved by stating;If it is satisfied, then determining target application from the adjustable application to be determined of the state.
6. according to the method described in claim 5, it is characterized in that, the if corresponding total expection of the adjustable application to be determined of state Resource can be saved to be unsatisfactory for described to save resource, further includes:
The application to be determined of the adjustable whole of state is determined as Part III target application;
The application that fixed number is chosen from each normal state application except the Part III target application is answered as to be determined With, judge the corresponding total saving resource of the adjustable application to be determined of state whether meet it is described need to save resource, if it is satisfied, then Determine Part IV target application from the application to be determined, and by the Part III target application and Part IV mesh Mark application is used as target application;
If conditions are not met, then it is anticipated that resource and the product sequence from big to small using time interval can be saved, from described The application for choosing fixed number in each normal state application except Part III target application again is used as application to be determined, and judges Whether normal state application, which is chosen, finishes;
It takes complete if unselected, executes described in judging whether corresponding total the savings resource of the adjustable application to be determined of state meet The step of resource need to be saved, until adjustable state using corresponding resource of saving meets institute in normal state application Resource need to be saved by stating;
If selection finishes, application is had been turned on from addition to normal state is applied, it is anticipated that when can save resource and use Between the sequence of the product that is spaced from big to small, determine the target application for wherein needing adjustment state.
7. according to the method described in claim 5, it is characterized in that, it is described according to except first part's target application The expection of starting can save the product size of resource and time interval, determine second part target application, comprising:
According to the part resource that first part's target application is saved, calculating is described need to save resource and the part resource Difference, and, application is respectively had been turned in addition to first part's target application, when resource can be saved and use by calculating expection Between the product that is spaced;
According to the sequence of each product from big to small, the second part target application for meeting the difference is determined.
8. the method according to claim 1, wherein the practical computing resource of the AR equipment meets the expection In the case where computing resource, alternatively, in response to user exit it is described have been turned on application when further include:
The application that dormant state is in application is had been turned on described in wake-up.
9. a kind of operating system, which is characterized in that the operating system is integrated in augmented reality AR equipment, the operating system packet It includes:
Computing unit is calculated and has been opened described in maintaining for changing in response to the state for having been turned on application in the AR equipment Total expected computing resource needed for the current state of dynamic application;The computing resource phase that the state needs to distribute with the AR equipment It is mutually corresponding;
Judging unit, for judging whether the practical computing resource of the AR equipment meets total expected computing resource;
Adjustment unit, in the case where the result of the judging unit is no, according to reducing total expected computing resource Principle, the application state of application is had been turned on described in adjustment.
10. a kind of method of adjustment of application state, which is characterized in that the method for adjustment is answered applied to the adjustment of augmented reality AR With the method for adjustment includes: that the adjustment application detects whether other states for having been turned on application change;
If there is a change, then total expected computing resource that the current state of application is had been turned on described in maintaining is calculated;The state The computing resource distributed is needed to correspond to each other with the AR equipment;
Judge whether the practical computing resource of the AR equipment meets total expected computing resource;
If conditions are not met, have been turned on application described in adjustment applies shape then according to the principle for reducing total expected computing resource State.
11. a kind of adjustment application of application state, which is characterized in that the adjustment application is installed on augmented reality AR, the tune Whole application includes:
Detection unit, for detecting whether the state that other have been turned on application changes;
Computing unit, in the case where the result of the detection unit is to change, then calculating and being had been turned on described in maintenance Total expected computing resource of the current state of application;The state and the computing resource that the AR equipment needs to distribute are mutually right It answers;
Judging unit, for judging whether the practical computing resource of the AR equipment meets total expected computing resource;
If conditions are not met, have been turned on application described in adjustment applies shape then according to the principle for reducing total expected computing resource State.
12. a kind of readable medium, which, which is stored with, makes augmented reality AR equipment execute the adjustment journey for being used for application state Sequence, the processing the following steps are included:
Detecting step, will test whether the state that other have been turned on application changes;
Step is calculated, in the case where changing, calculates the total expected meter for the current state for having been turned on application described in maintaining Calculate resource;The state needs the computing resource distributed to correspond to each other with the AR equipment;
Judgment step, judges whether the practical computing resource of the AR equipment meets total expected computing resource;
Set-up procedure, in ungratified situation, according to the principle for reducing total expected computing resource, adjustment is described have been opened The application state of dynamic application.
13. a kind of augmented reality AR equipment characterized by comprising processor and memory;
The memory, for storing program instruction and/or data;The processor is stored for reading in the memory Instruction and/or data, execute following operation:
The adjustment application detects whether other states for having been turned on application change;
If there is a change, then total expected computing resource that the current state of application is had been turned on described in maintaining is calculated;The state The computing resource distributed is needed to correspond to each other with the AR equipment;
Judge whether the practical computing resource of the AR equipment meets total expected computing resource;
If conditions are not met, have been turned on application described in adjustment applies shape then according to the principle for reducing total expected computing resource State.
CN201710469545.0A 2017-06-20 2017-06-20 Method of adjustment, operating system and the AR equipment of application state Pending CN109101324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710469545.0A CN109101324A (en) 2017-06-20 2017-06-20 Method of adjustment, operating system and the AR equipment of application state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710469545.0A CN109101324A (en) 2017-06-20 2017-06-20 Method of adjustment, operating system and the AR equipment of application state

Publications (1)

Publication Number Publication Date
CN109101324A true CN109101324A (en) 2018-12-28

Family

ID=64795630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710469545.0A Pending CN109101324A (en) 2017-06-20 2017-06-20 Method of adjustment, operating system and the AR equipment of application state

Country Status (1)

Country Link
CN (1) CN109101324A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493724A (en) * 2007-12-20 2009-07-29 英特尔公司 Location based policy system and method for changing computing environments
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN103645955A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Running management method and device for application program
CN106201679A (en) * 2016-06-28 2016-12-07 联想(北京)有限公司 Information processing method and electronic equipment
CN106528296A (en) * 2016-11-21 2017-03-22 滁州职业技术学院 Control method for running memory of mobile terminal, and mobile terminal
CN106844047A (en) * 2017-01-11 2017-06-13 上海传英信息技术有限公司 A kind of application program optimization method of intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493724A (en) * 2007-12-20 2009-07-29 英特尔公司 Location based policy system and method for changing computing environments
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN103645955A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Running management method and device for application program
CN106201679A (en) * 2016-06-28 2016-12-07 联想(北京)有限公司 Information processing method and electronic equipment
CN106528296A (en) * 2016-11-21 2017-03-22 滁州职业技术学院 Control method for running memory of mobile terminal, and mobile terminal
CN106844047A (en) * 2017-01-11 2017-06-13 上海传英信息技术有限公司 A kind of application program optimization method of intelligent terminal

Similar Documents

Publication Publication Date Title
CN102438046B (en) A kind of karaoke song requesting system based on cloud computing and method for ordering song thereof
CN108052384B (en) Task processing method, service platform and electronic equipment
CN106033666B (en) A kind of information processing method and electronic equipment
CN102957809A (en) Method for optimizing application programs on intelligent mobile phone
CN106648747A (en) Method and device for processing pre-loading of process
CN102822791B (en) The information processing terminal and control method thereof
CN106528028A (en) Information processing method, system, device and terminal
CN102523422B (en) Multi-party communication control system, multi-party communication system and multi-party communication processing method
CN109243619A (en) Generation method, device and the computer readable storage medium of prediction model
CN106484240A (en) Smart machine and eye protection alarm set and method
CN103580887B (en) Client, upgrade method and system
CN112445615A (en) Thread scheduling system, computer equipment and storage medium
CN105354056B (en) APP recommendation information display method and device
CN110505528A (en) The matched method, apparatus of game, equipment and readable storage medium storing program for executing in live streaming
CN113824977A (en) Live broadcast room virtual gift presenting method, system, device, equipment and storage medium
CN110795238A (en) Load calculation method and device, storage medium and electronic equipment
CN103366074A (en) Situational command system and operation method
CN108932627A (en) Predictor method, device and the readable storage medium storing program for executing of the depletion rate of CPA advertisement
CN107624181A (en) Idle and scheduling virtual machine management method and equipment including virtual processor
CN109101324A (en) Method of adjustment, operating system and the AR equipment of application state
CN109218817A (en) A kind of method and apparatus showing virtual present prompting message
CN110363508A (en) The control rule settings method and operating system of smart home device
CN111081251B (en) Voice wake-up method and device
CN106021086A (en) Method and device for automatically recognizing addition applications and terminal device
CN111784418A (en) Display control method and device for live broadcast room, computer medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181228

RJ01 Rejection of invention patent application after publication