Datagroup (virtual layout) + itemrenderer: slow scrolling?

Hi all,
In one of our solutions, I'm showing a list that can contain two types of rows.
Since the list can be quite long, I made it as following.
- I have a DataGroup with a custom item renderer.
- the DataGroup has a vertical layout
- it uses virtualization (so the rows are only rendered when they are visible)
It all works flawless:
if you click the arrows of the scrollbar, it's lightning fast.
If you use you mouse scrollwheel, it's lightning fast.
Only, when you drag the scrollbar and move it up and down, the rendering is somewhat slow and delayed.
Not much, but a reasonable delay that is visible (the list is empty for a split second before it's rendered).
Since it works fast when you scroll the mousewheel (which is also a pretty fast way of scrolling), which indicates that the itemrenderer can be fast, I am wondering if I'm missing something.
Do any of you guys have experience with DataGroup lists in combination with a custom item renderer and virtualization?
Should I use other components maybe?
Any input is welcome, thanks in advance.
Ivy
PS Since the itemrenderer is recycled, it works as following: it initialises both the types of rows (as said, there are only two different type of rows) and makes them both invisible. Then, when the data setter is called, the correct type of row is putted back to visible, and is filled with the correct data. This method is suggested in this series by Peter Ent, on Adobe Devnet.

from the API docs
A container using a virtual layout that contains few children whose sizes vary widely can respond poorly to interactive scrolling using the scroll thumb. No performance degradation occurs when scrolling using the scroll arrows or by clicking in the scroll track. Responsiveness improves as the variation in size decreases or the number of children increases.
I have a similar issue and would love to hear of any work arounds

Similar Messages

  • [svn:fx-trunk] 12973: Added DataGroup/getItemIndicesInView() method and fixed a DataGroup virtual ItemRenderer leak.

    Revision: 12973
    Revision: 12973
    Author:   [email protected]
    Date:     2009-12-15 15:59:25 -0800 (Tue, 15 Dec 2009)
    Log Message:
    Added DataGroup/getItemIndicesInView() method and fixed a DataGroup virtual ItemRenderer leak.
    Removed an obsolete FIXME from Spinner.
    QE notes:
    Doc notes:
    Bugs: sdk-24702, sdk-24704
    Reviewer: Evtim
    Tests run: DataGroup
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-24702
        http://bugs.adobe.com/jira/browse/sdk-24704
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as

  • How to remove the use of virtual layout on a Spark DataGrid

    Hi!
    I have the following spark data grid:
    <s:DataGrid id="listagem"
                x="6"
                y="6"
                width="640"
                height="400"
                skinClass="skins.dataGrid.ConsusListagemDataGridSkin"
                dataProvider="{imoveis}">
         <s:columns>
              <s:ArrayList>
                   <s:GridColumn headerText="IMÓVEL"
                                 itemRenderer="components.itemRenderers.ListagemImovelItemRenderer"/>
                   <s:GridColumn headerText="LOCALIZAÇÃO"
                                 dataField="comuna"
                                 width="130"/>
                   <s:GridColumn headerText="PREÇO"
                                 labelFunction="{function (item:Object, column:GridColumn):String {return '$ '+item.preco;}}"
                                 width="90"/>
                   <s:GridColumn headerText="COMPARAR"
                                 width="70">
                        <s:itemRenderer>
                             <fx:Component>
                                  <s:GridItemRenderer>
                                       <s:CheckBox verticalCenter="0" horizontalCenter="0"/>
                                  </s:GridItemRenderer>
                             </fx:Component>
                        </s:itemRenderer>
                   </s:GridColumn>
              </s:ArrayList>
         </s:columns>
    </s:DataGrid>
    My problem is that, if I select the check box on one item having a considerable amount of rows, then if I scrool down another item will appear checked even if I never clicked it.
    This is due to the use of virtual layout by the spark data grid, but I just can't find where to tell the data grid to not use virtual layout.
    Can anyone help me, please?
    Thanks,
    Jorge

    Hi kevinklin!
    Thanks for your answer.
    I tried to do as you told but I never get the prepare method to be executed.
    I just added this to the GridItemRenderer:
    public override function prepare(willBeRecycled:Boolean):void
         Alert.show('BLA OUT');
         if (willBeRecycled)
              Alert.show('BLA IN');
    but I never get to see any alert box.
    Best regards,
    Jorge

  • [SOLVED] Fixing slow scrolling in firefox with nvidia and 64 bit

    I'm experiencing very slow scrolling with firefox on sites like
    http://www.roadrunnerrecords.com/blabbermouth.net/
    http://www.vai.com/News/index.html
    I'm running 64 bit with KDEmod. Scrolling is fine when I remove flash completely but on Ubuntu 10.04 (64 bit) the abnove sites scroll fine on a different machine (with intel graphics). I read somewhere by modifying xorg with "AccelMethod" "EXA" to "XXA" scrolling becomes very smoth onm ATI and Intel. Here is my xorg.conf:
    Section "ServerLayout"
            Identifier     "X.org Configured"
            Screen      0  "Screen0" 0 0
            InputDevice    "Mouse0" "CorePointer"
            InputDevice    "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
            ModulePath   "/usr/lib/xorg/modules"
            FontPath     "/usr/share/fonts/misc"
            FontPath     "/usr/share/fonts/100dpi:unscaled"
            FontPath     "/usr/share/fonts/75dpi:unscaled"
            FontPath     "/usr/share/fonts/TTF"
            FontPath     "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
            Load  "glx"
            Load  "record"
            Load  "dbe"
            Load  "extmod"
    EndSection
    Section "InputDevice"
            Identifier  "Keyboard0"
            Driver      "kbd"
    EndSection
    Section "InputDevice"
            Identifier  "Mouse0"
            Driver      "mouse"
            Option      "Protocol" "auto"
            Option      "Device" "/dev/input/mice"
            Option      "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
            Identifier   "Monitor0"
            VendorName   "Monitor Vendor"
            ModelName    "Monitor Model"
            HorizSync    28.0 - 72.0
            VertRefresh  43.0 - 60.0
    EndSection
    Section "Device"
            Identifier  "Card0"
            Driver      "nvidia"
            VendorName  "nVidia Corporation"
            BoardName   "G92 [GeForce 9800 GT]"
            Option      "RenderAccel" "true"
            Option      "NoLogo" "true"
            Option      "AGPFastWrite" "true"
            Option      "EnablePageFlip" "true"
            BusID       "PCI:1:0:0"
    EndSection
    Section "Screen"
            Identifier "Screen0"
            Device     "Card0"
            Monitor    "Monitor0"
            SubSection "Display"
                    Viewport   0 0
                    Depth     1
            EndSubSection
            SubSection "Display"
                    Viewport   0 0
                    Depth     4
            EndSubSection
            SubSection "Display"
                    Viewport   0 0
                    Depth     8
            EndSubSection
            SubSection "Display"
                    Viewport   0 0
                    Depth     15
            EndSubSection
            SubSection "Display"
                    Viewport   0 0
                    Depth     16
            EndSubSection
            SubSection "Display"
                    Viewport   0 0
                    Depth     24
                    Modes    "1680x1050"
            EndSubSection
    EndSection
    Section "Extensions"
            Option "Composite" "Enable"
            Option "RENDER" "Enable"
    EndSection
    is there something I can change to improve scrolling in firefox? I've tried to turnoff desktop effects and scrolling is the same annd also running firefox from a fresh profile. Hence, i suspect my nvidia 9800GT card to be the culprit. If anyone has a working xorg.conf with nvidia, 64 bit and smooth scrolling on the above mentioned sites please SHARE! Many Thanks!
    Last edited by fettouhi (2012-02-22 17:42:10)

    karol wrote:
    > Tried it now and that worked. Running without a xorg.conf buty now I can't turn on desktop effects in KDE. How do I set that up?
    Sorry, I don't use KDE, but it may be related to how do you start KDE: from xinit or via KDM or sth.
    > How do I determine what driver xorg is using now that I'm running without it xorg.conf?
    It's running the same driver as before.
    > Using the binary nvidia blob driver.
    Did you uninstall it? Did you install the nouveau driver? 'pacman -Qqs xf86-video' will tell you what drivers you have installed.
    No, I don't have the nouveau driver installed. I have to check if I have the nv driver installed but I didn't uninstall the nvidia driver. I'm starting KDE via xinit.

  • Indesign CS5 Slow Scrolling

    Hello
    I'm currently being affected by a slow scrolling bug in InDesign CS5 where no matter what my scroll settings are the speed is constantly slow. Is there an override in InDesign somewhere to fix this?
    This was also present in CS4 but not quite as bad and have also seen other posts in Ps forums.
    Using Windows 7 and logitech mouse
    Thanks
    Nathaniel

    Could you be more specific about this slow scrolling, and what settings are not making a difference?

  • Iphone 4s is slow scrolling though pages after exiting setting, 3sec lag, any ideas how to fix?

    Iphone 4s is slow scrolling though pages after exiting setting, 3sec lag, any ideas how to fix?

    I have the same issue on mine...

  • Slow Scrolling on IOS X

    Hi! I just downloaded the new IOS X, and I am very annoyed with the slow scrolling, is it possible to make it go faster.
    I've already checked the settings, where you choose the settings for the touchpad.
    Please help me. Thanks..

    System Preferences > Accessibility > Mouse & Trackpad > Trackpad Options
    Adjust scrolling speed.

  • Very slow scrolling window thumbnails clips

    Very slow scrolling windows with thumbnail clips. The more files in the event, the worse it gets. It is very frustrating. Is in others it is the same? I have MacOookPro i7 early 2011, thunderbolt drives RAID0, 16GB memory, FCPX 10.0.7. After the hardware is decent.
    Give some feedback, thank you.
    P.S. I might add that this disadvantage are found from version 10.0.0.

    You might want to look at either booting from your install dvd (insert, restart and hold 'C' down) and running disk repair from Utilities. Alternatively, and I always suggest any Mac user should have at least one, a 3rd party disk utility like DiskWarrior (there are others) is extremely useful.

  • Very slow scroll and mouse sweep in Elements 9 Organizer

    My organizer has suddenly started to scroll very very slowly when looking through multiple thumbnails. Even if I move the mouse across the thumbnails, it takes seconds to register the mouse has passed over.
    Once you do set a scroll in motion, you can't stop it. You just have to wait till its done its slow thing!! I've switced off auto media stuff (Auto face recognition etc) Updated thumbnails, repaired the catalogue (Even though it didn't need it)
    Only around 3500 images, not large.  At the request of the Help Team I re-downloaded the programme. Still Slow scrolling. Why is it doing this???
    Have apple Mac Snow Leopard

    My organizer has suddenly started to scroll very very slowly when looking through multiple thumbnails. Even if I move the mouse across the thumbnails, it takes seconds to register the mouse has passed over.
    Once you do set a scroll in motion, you can't stop it. You just have to wait till its done its slow thing!! I've switced off auto media stuff (Auto face recognition etc) Updated thumbnails, repaired the catalogue (Even though it didn't need it)
    Only around 3500 images, not large.  At the request of the Help Team I re-downloaded the programme. Still Slow scrolling. Why is it doing this???
    Have apple Mac Snow Leopard

  • Acrobat 8 and 9 slow scrolling in terminal server or RDP

    Adobe, there have been several postings here regarding the painfully slow scrolling introduced in acrobat 8 and 9 when viewing a multi page PDF via terminal services or RDP. It is discussed here in your forums and other internet forums. Have you a solution? Have you investigated this? It occurs not via a lan connection but a wan connection. You need to access an RDP session via dsl to reproduce this.
    This is not a Microsoft Terminal services or RDP problem. It is an Acrobat problem. This did not occur with Acrobat 7. Thus the current method of fixing is to not install versions of acrobat above 7 or downgrade your Acrobat 8 or 9 install to 7. Not a lasting solution.
    Acrobat, I implore you to investigate this problem and offer a solution.

    I had the slow scrolling problem, too. Just occurred out the blue on December 15, 2010. Here's the simplest solution:
    http://help.adobe.com/en_US/Acrobat/9.0/Standard/WS58a04a822e3e50102bd615109794195ff-7d1b. w.html
    This link deals with the auto scrolling function under "View" at the top of your Adobe Reader page. Basically, with your Adobe document open and watching "auto scrolling" (i.e. your pages scrolling very slowly), hit a number (1-9) to adjust the speed of scrolling. I picked 5.
    Then, go to "View" again and select "Auto Scrolling" to turn off this function.
    Now, re-open your Adobe Reader document (if closed) and you should be able to scroll at a "normal" and not slow pace.
    Hope I'm right with this one.
    Happy Holidays.

  • Slow Scrolling Due to Cache Indicators. When will this be fixed?

    Have you experienced slow/clunky scrolling when scrolling through layers in your timeline? This has been an issue for years now. When you grab the scroll bar and scroll it is fine, but using the mouse wheel or track-pad it results in painfully annoying refresh rates.
    The Solution is to uncheck "Show Cache Indicators" from the timeline drop down menu. However, Cache indicators can be very useful so it is shame not to be able to use them. While this may not seem like a huge deal, slow scrolling really decreases productivity in projects with lots of layers.
    This has been happening since at lease CS6 and I think it is high time it gets fixed. I'd appreciate any commentary on this or suggestions on how to fix this without disabling the Cache Indicators.
    Thanks!

    Interactive performance improvements in areas such as this are our primary focus right now.

  • Slow scroll

    Does anyone have ANY solutions to the iTunes 7 slow scroll problem for Windows XP Home Edition? Any feedback would be appreciated.

    I don't believe memory per-se is the cause of this issue. I've quickly profiled Safari 5.1.4 and Firefox 11 using Instruments. The test: load up a website (BBC news, say), and then continually scroll with the trackpad up and down for about 20 seconds while recording data.
    For Safari, the call tree suggests that ~90% of the CPU time is being spent in re-drawing the page - that is, it seems to be re-rendering the whole page every time there is a scroll event. This will naturally create slow / irregular frame rates when scrolling.
    With Firefox, CPU usage is negligible during scrolling. From the trace, it appears to me that the webpage is rendered once, when it is loaded, into a buffer, and redrawing is then just a case of copying the appropriate part of this buffer to screen (which is fast, especially if done on the gpu). I believe this is much more akin to the methods used on iOS with CoreAnimation (which is why you can get silky smooth scrolling with an ultra-high res iPad with a processor that's far slower than a laptop/desktop CPU).
    Moreover, the problem isn't limited to Safari, but crops up in many other Mac desktop apps. I find choppy scrolling in Mail, Reeder, the Mac App Store... from limited testing it all seems to boil down to the same issue. Fundamentally, it would appear that many apps built on AppKit & WebKit will suffer from this issue, until Apple can use some method of caching to  speed up redraws.
    I would  suggest filing a bug report with Apple.

  • [solved] Slow scrolling in Mutt

    Hi all,
    I've just installed Mutt (excellent!) but when I use the arrow keys to scroll up and down through threads, there's a big delay, and Mutt takes a while to catch up. Does anyone have any ideas? (I do have header_cache and message_cache_dir enabled.)
    Cheers,
    Ianhoolihan
    Last edited by ianhoolihan (2013-01-30 20:34:57)

    Sorry for the late reply --- I guess I hadn't subscribed to the thread, so didn't realised you'd replied!
    Thanks for the suggestions, but it doesn't seem to have worked. I haven't been using Mutt (because of this annoying scrolling), but seeing your reply prompted me to look again. And guess what I found --- it's related to the mail_check to variable! At the default of 5 seconds, I get slow scrolling. Set it to 60 seconds, and voila, I have fast scrolling! I don't know why it works, but it does, and I am glad = )
    Ianhoolihan

  • Slow scrolling in my instalation

    Hi fellow archers, I have a fresh instalation of Arch Linux, and I'm experiecing slow scrolling in my instalation. Does anyone is experiencing the same problem? Or someone now why?
    I have :
    ->xorg 1.12.1
    ->nouveau 0.0.16_git20120210-1
    ->nouveau-dri 8.0.2-1
    ->linux-ck 3.3.3-1
    I would apreciate an answer or exclaration.
    Thanks in advance.

    Well, we can start here: www.apple.com/feedback/icloud.html
    I just submitted a request there for a different iCloud problem (non-searchable emails on iCloud.com - I don't know if you have that problem too...)
    I also just sent the below feedback for this problem too. The more the better, so please chime in...
    "In Firefox 10 (and several earlier versions of FF), whenever I use the scroll wheel on the right-most preview pane at iCloud.com, emails scroll at about 25% of normal speed. This is not a problem in IE9... very peculiar. Will this get fixed?"

  • Slow Scrolling HD Video Selections on ATV Hard Drive

    I currently stream HD videos from my Mac because for some odd reason keeping content synced produces an annoying slow scrolling issue for video selection. The ATV stops for 10-15 seconds reading the properties of each file before going to the next selection. This is not an issue when streaming which is odd as you would expect better performance with local content. This doesn't occur when scrolling standard def content or with HD podcasts though they are only 3-5 minutes in length. This was tested on 2x ATVs one with firmware 1.1 and 2. I would prefer to keep the video on the ATV. Any ideas as to what is causing this?

    Had the same problem. It has to do with the aTV generating a thumbnail each time for each of your videos (when steaming, your computer generates the thumbnail...no work for aTV). For some reason, some videos take longer to produce a thumbnail (perhaps one with higher bitrates). You can tell which ones they are by clicking on the list in iTunes and seeing how long it takes for the thumbnail to appear in the bottom corner.
    The fix is easy: Select your own picture and store it on the artwork tab of the get info menu (this comes up if you right click the video in windows). You can copy the thumbnail the itunes creates, and paste in the artwork tab. With the artwork stored, the atv no longer has to generate it for that video.
    I did this for all of my videos, and now no problems.
    Hope that helps.

Maybe you are looking for

  • How do i change the name of my airplay speakers to more sensible names

    How can i change the name of my pioneer air play speakers to a more sensible name(ie room)?

  • Focus on JSP Applet

    Hi, I have an application where an applet loads when the appropriate part is clicked from a tree. The problem here is the focus does not directly get on the applet and instead i first have to click on it to activate it. Can any one please tell me how

  • ABAP Documents for BI consultants

    what all the requirements to learn the ABAP for BI consultant ? please give in details or send the documentation links Thanks Lohith

  • Error 107 and the troubleshoot didn't help

    I have been trying with no success to download the After Effects, however I constantly get error 107. I have followed all the steps on the troubleshoot adobe download assistant and as 107 is a communication error I tried stopping firewalls and intern

  • Possible sampling rates of a PCI-MIO-16E-1 with DASYLab

    Hello! I'm using a PCI-MIO-16E-1 DAQ. It's maximum sample rate is 1.25MS/s My questions: - What does maximum output rate of 1MS/s mean? I need 3 channels at 400kS/s. - What are the possible sample rates? Can I use e.g. 3 channels with 105 kS/s each?