I have cross compiled swfdec-0.5 for ARM and I have also written a player for framebuffer. But its too slow!! Can you tell me the reason behind this? Can i increase speed by somehow? I doubt my code for player. I have written following loop in my player: while(1) { diff = swfdec_player_get_next_event(player); swfdec_player_advance(player, diff); swfdec_player_render(player, cr, 0, 0, w, h); } Shall I add something? Thanks in advance. Shabbir -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20070809/53489498/attachment.htm
On 8/9/07, Shabbir <shabbir.bharmal at gmail.com> wrote:> I have cross compiled swfdec-0.5 for ARM and I have also written a player > for framebuffer. >Great. This seems to mean it works. :)> But its too slow!! Can you tell me the reason behind this? Can i increase > speed by somehow? I doubt my code for player. > > I have written following loop in my player: > > while(1) > { > diff = swfdec_player_get_next_event(player); > swfdec_player_advance(player, diff); > swfdec_player_render(player, cr, 0, 0, w, h); > } >While the player itself is fine, it redraws the whole screen all the time, even if nothing happened. The first obvious improvement would be to only redraw the changed regions. This can be achieved by connecting to the "invalidate" signal of the player, and only redraw the region that got changed there. This should give you a huge speedup for a lot of Flash files already. Of curse, Swfdec is not known to be a speed deamon. Cheers, Benjamin
Reasonably Related Threads
- screenshot of swf file
- Compiling swfdec without GTK
- Porting Swfdec to Mac OS X & Timing question
- Cross Compiling swfdec for ARM
- 2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c