[MPlayer-dev-eng] [PATCH] slow menus : try two

Adam Sulmicki adam at cfar.umd.edu
Sun Jan 7 23:07:53 CET 2007


hello,

This is try two.

This attached patch speeds up mplayer execution by over FIVE times when 
all of the of the following apply:
 	* menus are enabled
 	* menus are enabled but not displayed
 	* direct rendering is in use

About AUTHORS, both the profiling fixes as well as menu speed up represent 
about month of work with some advanced tracing/dissasembling put in behind 
it. So even if the fixes are seeminly simple the work put behind them was 
substantial.


-- 
Adam Sulmicki
http://www.eax.com 	The Supreme Headquarters of the 32 bit registers
-------------- next part --------------
Index: libmenu/vf_menu.c
===================================================================
--- libmenu/vf_menu.c	(wersja 21854)
+++ libmenu/vf_menu.c	(kopia robocza)
@@ -233,6 +233,10 @@
   } else {
     if(mp_input_key_cb)
       mp_input_key_cb = NULL;
+
+    if(mpi->flags&MP_IMGFLAG_DIRECT)
+      dmpi = mpi->priv;
+    else {
     dmpi = vf_get_image(vf->next,mpi->imgfmt,
 			MP_IMGTYPE_EXPORT, MP_IMGFLAG_ACCEPT_STRIDE,
 			mpi->w,mpi->h);
@@ -245,6 +249,7 @@
     dmpi->planes[2] = mpi->planes[2];
     dmpi->priv      = mpi->priv;
   }
+  }
   return vf_next_put_image(vf,dmpi, pts);
 }
 
Index: AUTHORS
===================================================================
--- AUTHORS	(wersja 21854)
+++ AUTHORS	(kopia robocza)
@@ -1030,6 +1030,9 @@
 Sudrien
     * softgrip
 
+Sulmicki, Adam <adam at cfar.umd.edu>
+   * profiling and menu fixes
+
 Szumiela, Marcin <marcin at szumiela.pl>
     * divxplayer
 


More information about the MPlayer-dev-eng mailing list