-
Notifications
You must be signed in to change notification settings - Fork 705
Poor performance and crashing on Galaxy S5, Nexus 5 #175
Comments
I'm thinking of implemeting a Canvas approach inside a Flexbox. Any thoughts? |
is 3000x5000 the device resolution ? its huge ! |
Yep. 5312x2988, full resolution captured by the Galaxy S5. I understand that Will the carousel work with canvas objects? On Tue, Jun 24, 2014 at 5:05 PM, Julien Bouquillon <[email protected]
Marc Syp, Application Engineer WARNING: The information contained in this message is legally |
Yep carousel works with any kind of content but i dont get why canvas perf could be better; Its already GPU accelerated with the CSS3d transformations. |
Having a hard time getting the CSS right without using "cover", at least On Tue, Jun 24, 2014 at 6:05 PM, Julien Bouquillon <[email protected]
Marc Syp, Application Engineer WARNING: The information contained in this message is legally |
could be interesting to have an isolated example with these giant images to benchmark/analyse |
I will try to create an isolated example for these purposes when I have a http://stackoverflow.com/questions/18922880/html5-canvas-resize-downscale-image-high-quality However, I'm not sure whether the scaling would result in any performance Another note re: html canvas. Due to the Galaxy S5's lack of rotation of On Wed, Jun 25, 2014 at 12:25 AM, Julien Bouquillon <
Marc Syp, Application Engineer WARNING: The information contained in this message is legally |
Note: I implemented an image scaling directive in Angular, but I'm having some problems. Here is the directive: app.directive("imageResize", [ The directive works on the first set of slides in the carousel, but as soon as the first swipe is performed, the images revert to their full, non-scaled versions. Also, the performance gain for the swiping carousel is good but load time is not any better, in fact it's probably a bit worse. Any thoughts? |
HMTL markup that I'm using: ul rn-carousel rn-carousel-buffered rn-carousel-index="currentSlide" class="my-slider ng-cloak"> |
btw, this document could be useful if you report other issues somewhere : https://guides.github.com/features/mastering-markdown/ |
Hi revolunet, Is there any updates on this issue? thanks |
@rlaurente (i'm a bit late to your reply but) did you try using the option "rn-carousel-buffered"? It loads a maximum of 5 items into the DOM at a time so should work better with lots of carousel items. |
Hi there. I'm writing an Ionic app and managed to integrate angular-carousel reasonably well by removing the ngClick directive from angular-touch (to avoid conflicts with Ionic).
It works really well on a carousel of 100 slides with 1-5 thumbnails each. However, a carousel with full resolution images (3000x5000) is choking quite a bit. Doesn't matter if it's 10 images or 300. Longer load time, and a jittery/flashy first swipe, followed by laggy swipes, followed by crashes. My markup is as follows.
HTML
ion-content has-header="false">
ul rn-carousel rn-carousel-buffered="3" rn-carousel-index="currentSlide" class="my-slider ng-cloak">
li ng-repeat="selectedPhoto in selectedPhotos track by $index">
div class="photoViewDiv">
div style="background-image: url('{{selectedPhoto}}');" class="photoViewImg">
/div>
/li>
/ul>
/ion-content>
CSS
.photoViewDiv {
background: black;
max-width: 100%;
max-height: 100%;
}
.photoViewImg {
border: 1px solid #666;
/float: left;/
width: 100%;
max-height: 100%;
padding-bottom: 100%;
background-position: center;
cursor: pointer;
}
JS
Feel free to ask, not sure it's important here.
Any ideas?
The text was updated successfully, but these errors were encountered: