Re: Morphic animation, c'est lent.

Laval Jannik <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.french
Message-ID <[email protected]>
Salut,

Tu peux tenter un MessageTally:

MessageTally spyOn:[
	(m := Morph new) openInWorld.
	1 to: 300 do: [:i |
	 m position: m position + (1@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@1).
> World doOneCycle]
>
>
> Stef
>
> _______________________________________________
> Squeak-fr mailing list
> Squeak-fr-bD51WKytQuJI8mQ4nJOOf3xJsTq8ys+cHZ5vskTnxNA@public.gmane.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
---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.