This is my rough idea about how the drawing systems works with the paint
partial:
0. When buffers are not being used paint uses paintPartial to do the
painting
1. paintState==0 under normal conditions triggers an update with the
calculated dt (++frame)
1a. This recomputes all the solar system object positions and the the
tansformation matrices and the FOV
2. paintState==1 triggers drawing using the drawPartial function
2a. Do the preDraw in the core
2b. Draw 1 module per iteration
2c. Do the postDraw in the core
The callee for the paint function i think is the updateScene.

The mentioned increase in FPS must be when there has been an event in the
last 2.5 seconds right. Else it must return to minFPS
I dont understand how this process allows for doing the calculation over
several frames. Is it not that the all calculation happens in step 1 at one
go and that no display can happen till step 2. And then it keeps doing the
drawing till the end.


On Thu, Apr 5, 2012 at 4:48 AM, Reaves, Timothy <
trea...@silverfieldstech.com> wrote:

> On my MacBook Pro - now seven years old - consolidating that code made the
> FPS go from ~55 to ~160.  That's a big difference!
>
>
>
> On Wed, Apr 4, 2012 at 6:31 PM, Fabien Chéreau <
> fabien.cher...@googlemail.com> wrote:
>
>> On Wed, Apr 4, 2012 at 17:11, Chiraag Juvekar <chiraag.juve...@gmail.com>
>> wrote:
>> > Hey,
>> >
>> > I was reading the implementation of the StelAppGraphicsWidget but I cant
>> > follow the paintPartial function.
>> > I understand that in one cycle it sets the data in the modules and in
>> the
>> > next it paints them.
>> > I wanted to know why is it implemented in this manner. WHy no do both
>> > together one after the other?
>> >
>> > I had a similar doubt with the drawPartial implementation in stelApp
>>
>> This something Guillaume did to allow for fluid GUI even when the CPU
>> is not very fast. The problem was that when it took more than 1 frame
>> to compute and render the sky, the animation was kind of blocked and
>> it was annoying for keeping a fluid GUI. With this trick you can spit
>> the computation of the sky over several frames (and in the mean time
>> the program re-display always the same view stored in a buffer).
>>
>> Fab
>>
>>
>> > --
>> > Chiraag
>> >
>> > You can't have everything in life,
>> > In particular, the list of all lists that do not contain themselves.
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Better than sec? Nothing is better than sec when it comes to
>> > monitoring Big Data applications. Try Boundary one-second
>> > resolution app monitoring today. Free.
>> > http://p.sf.net/sfu/Boundary-dev2dev
>> > _______________________________________________
>> > Stellarium-pubdevel mailing list
>> > Stellarium-pubdevel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Better than sec? Nothing is better than sec when it comes to
>> monitoring Big Data applications. Try Boundary one-second
>> resolution app monitoring today. Free.
>> http://p.sf.net/sfu/Boundary-dev2dev
>> _______________________________________________
>> Stellarium-pubdevel mailing list
>> Stellarium-pubdevel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>>
>
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Stellarium-pubdevel mailing list
> Stellarium-pubdevel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>
>


-- 
Chiraag

You can't have everything in life,
In particular, the list of all lists that do not contain themselves.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to