Show
Ignore:
Timestamp:
06/10/08 08:41:13 (3 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1213080073 -0700
git-parent:

[a690954e568e8445fa42108fb6f85825b5bc58a9]

git-author:
Adrien Maglo <magsoft@videolan.org> 1212668696 +0200
Message:

Use less CPU : reduction of the number of iteration when it draws the frame. Some non-code corrections of the previous patch.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/visualization/visual/effects.c

    r3561b9b r27479a5  
    66 * 
    77 * Authors: ClĂ©ment Stenac <zorglub@via.ecp.fr> 
     8 *          Adrien Maglo <magsoft@videolan.org> 
    89 * 
    910 * This program is free software; you can redistribute it and/or modify 
     
    831832 
    832833/***************************************************************************** 
    833  * vuMeter_Run: scope effect 
     834 * vuMeter_Run: vu meter effect 
    834835 *****************************************************************************/ 
    835836int vuMeter_Run(visual_effect_t * p_effect, aout_instance_t *p_aout, 
     
    900901                k = 0; 
    901902                teta_grad = GRAD_ANGLE_MIN; 
    902                 for ( teta = -M_PI_4; teta <= M_PI_4; teta = teta + 0.001
     903                for ( teta = -M_PI_4; teta <= M_PI_4; teta = teta + 0.003
    903904                { 
    904905                        for ( i = 140; i <= 150; i++ ) 
     
    942943 
    943944                /* Draw the hand bases */ 
    944                 for ( teta = -M_PI_2; teta <= M_PI_2 + 0.01; teta = teta + 0.001
     945                for ( teta = -M_PI_2; teta <= M_PI_2 + 0.01; teta = teta + 0.003
    945946                { 
    946947                        for ( i = 0; i < 10; i++ )