bugGNU Octave - Bugs: bug #52557, flickering of axis and tick marks...

 
 

bug #52557: flickering of axis and tick marks with animation (performance of plot)

Submitted by:  Andreas Stahel <sha1>
Submitted on:  Thu 30 Nov 2017 09:01:21 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Performance
Status: FixedAssigned to: None
Originator Name: Andreas StahelOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 01 Dec 2017 11:04:14 PM UTC, comment #3:

The patch definitely helps with the flickering, although the graphic slowness is probably caused by something else.

I did timing with

Since it is a visual improvement I pushed the patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/0fa322bf312d).

Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Thu 30 Nov 2017 10:08:16 PM UTC, comment #2:

The attached patch prevents the flickering for me. Nothing is drawn until "pause" or "drawnow" functions are called, or Octave returns to prompt.

The original script still looks slower with my dev version than with 4.2 on the same machine. This could be partly due to -O0, debug symbols and address sanitizer.

(file #42537)

Pantxo Diribarne <pantxo>
Project Member
Thu 30 Nov 2017 01:10:56 PM UTC, comment #1:

The axes is being reset at each time step because you are using "plot" which is a high level function. There are 2 solutions:

  • either prevent axes from being reset:
  • or use "line" (low level, axes untouched) instead of "plot".

This is the expected behavior, except that in Octave 4.2 it used to be faster. So I'll change the category to performance.

Pantxo Diribarne <pantxo>
Project Member
Thu 30 Nov 2017 09:01:21 AM UTC, original submission:

In the enclosed code an animation is generated and the axis and tick marks should not change during the animation.
It works as expected with version 4.2.1

With the devel version:
When crating an animation the axis flicker and occasionally display tickmarks at undesired positions are shown.

graphics_toolkit: qt and fltk
Tested with Ubuuntu 16.04 and 17.10, with very different graphics cards (NVidia and Intel)

Andreas Stahel <sha1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #42537:  reset.patch added by pantxo (786B - text/x-patch)
file #42529:  DoublePendulum.m added by sha1 (832B - application/vnd.wolfram.mathematica.package)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by sha1 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Dec 2017 11:04:14 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Thu 30 Nov 2017 10:08:16 PM UTCpantxoAttached File-=>Added reset.patch, #42537
      StatusConfirmed=>Patch Submitted
    Thu 30 Nov 2017 04:36:43 PM UTCrik5Summaryflickering of axis and tick marks with animation=>flickering of axis and tick marks with animation (performance of plot)
    Thu 30 Nov 2017 01:10:56 PM UTCpantxoItem GroupNone=>Performance
      StatusNone=>Confirmed
    Thu 30 Nov 2017 09:01:21 AM UTCsha1Attached File-=>Added DoublePendulum.m, #42529

    Back to the top


    Powered by Savane 3.1-cleanup1