[Squeak-fr] Morphic animation, c'est lent.

Laval Jannik jannick.menanteau at gmail.com
Mar 9 Juin 07:52:10 UTC 2009


Salut,

Tu peux tenter un MessageTally:

MessageTally spyOn:[
	(m := Morph new) openInWorld.
	1 to: 300 do: [:i |
	 m position: m position + (1 at 1).
	 World doOneCycle]].

Sous Pharo j'ai eu ces résultats:

========
========
- 5992 tallies, 6074 msec.

**Tree**
99.5% {6044ms} PasteUpMorph>>doOneCycle
99.5% {6044ms} WorldState>>doOneCycleFor:
85.3% {5181ms} WorldState>>interCyclePause:
   |85.3% {5181ms} Delay>>wait
   |  83.5% {5072ms} primitives
14.1% {856ms} WorldState>>doOneCycleNowFor:

**Leaves**
83.5% {5072ms} Delay>>wait

**Memory**
	old			+117,904 bytes
	young		+39,708 bytes
	used		+157,612 bytes
	free		-157,612 bytes

**GCs**
	full			0 totalling 0ms (0.0% uptime)
	incr		374 totalling 96ms (2.0% uptime), avg 0.0ms
	tenures		2 (avg 187 GCs/tenure)
	root table	0 overflows
========
========

En gros, il passe la plupart de son temps dans la méthode  
interCyclePause:
L'appel à cette méthode dépend de la préférence "higherPerformance".

En activant cette préférence, les résultats sont bien meilleurs, mais  
avec certainement des ralentissements:

========
========

- 847 tallies, 847 msec.

**Tree**
99.3% {841ms} PasteUpMorph>>doOneCycle
99.3% {841ms} WorldState>>doOneCycleFor:
98.8% {837ms} WorldState>>doOneCycleNowFor:

========
========


Jannik

On 9 juin 09, at 08:57, Stéphane Rollandin wrote:

> pour voir la vitesse maximum que tu peux atteindre pixel par pixel,  
> essaie ceci dans un workspace:
>
> (m := Morph new) openInWorld.
> 1 to: 300 do: [:i |
> m position: m position + (1 at 1).
> World doOneCycle]
>
>
> Stef
>
> _______________________________________________
> Squeak-fr mailing list
> Squeak-fr at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-fr

---
Jannik Laval
PhD Student - Rmod Team - INRIA
Certified Project Management Associate (IPMA)
http://www.jannik-laval.eu
http://rmod.lille.inria.fr
---



Plus d'informations sur la liste de diffusion Squeak-fr