Changes between Version 1 and Version 2 of NFR_PREVIEW_PERFORMANCE_R0
- Timestamp:
- 10/27/09 12:47:26 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified NFR_PREVIEW_PERFORMANCE_R0
v1 v2 11 11 == Task requirements == 12 12 Look for and fix performance issues related to preview mode and reader. Describe the changes that will be made and some possible future improvements if found. For every issue found, explain why it is a problem, so that for the next revision could serve as manual what to look for. If possible, DO NOT change any logic and model things. It is well known that the model is fast enough, so the less it is changed, the smaller the possibility of breaking something is. Here are several main aspects that must be optimized: 13 * NativeAudioOutput is the class which performs changes on a regular basis in preview mode. It actually uses BookView.setTime() method to change the book's time, then gets some audio chunks. This method is incredibly slow, because it sets the time of every view in the book hierarchy, which causes updates in particularly every part of Sophie author that depends on the current book. In a page with 3 chained frames it needs about 800ms to complete (on my PC). For a smooth media playing with about 25 fps, a step should be performed for less that 40ms .13 * NativeAudioOutput is the class which performs changes on a regular basis in preview mode. It actually uses BookView.setTime() method to change the book's time, then gets some audio chunks. This method is incredibly slow, because it sets the time of every view in the book hierarchy, which causes updates in particularly every part of Sophie author that depends on the current book. In a page with 3 chained frames it needs about 800ms to complete (on my PC). For a smooth media playing with about 25 fps, a step should be performed for less that 40ms (примерно). 14 14 * A well known fact is that adding the timelines palette in the trunk reduced greatly the performance on both author and preview mode. Investigate the palette and the timelines hud. 15 15 * Try reducing as much as possible the time dependencies in the views, since their time will change at least 25 times a second. This includes ElementView and all derivatives.