Re: [TuxKart-devel] Slowness - really related with Karts?
Status: Alpha
Brought to you by:
sjbaker
From: Ricardo C. <ri...@ae...> - 2004-09-05 20:51:14
|
> Modified Files: > RaceGUI.cxx RaceGUI.h > Log Message: > - fixed the computer-killer bug: each time text was drawn in RaceGUI > a new OpenGL texture was created but never freed. This has been > fixed by freeing the textures created each frame. Possibly some sort > of cache of textures would be more efficient, but this at least > makes the game runnable again. Ooops. Looks like it was my fault afterall... And I trying to blame another guy... :P Anyway, I guess this was a good opportunity for an auditory checking and fixing of others memory leaks, so it was a good thing, afterall. :) About the cache of textures, that is not practicable, since text is different all the time. You'd need tons of memory to cache all different combinations of texts. What I currently do is to cache TTF_Font, which already helps speeding it up. Though, I dunno if TTF_OpenFont() is all that expensive. By the way, Ingo, the game is outputting this: WARNING: ssgSGIHeader::: Failed to open 'NotFound: /home/ingo/projects/tuxkart/cvs/images/tuxkarttex.rgb' for reading. WARNING: ssgSGIHeader::: Failed to open 'NotFound: /home/ingo/projects/tuxkart/cvs/images/tuxtex.rgb' for reading. WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/bonusblock.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/bonusblock.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/banana.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/banana.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/stonetex.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/stonetex.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/trackborder.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/trackborder.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/models/palm.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/models/palm.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/models/palmtree.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/models/palmtree.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/water.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/water.png WARNING: ssgLoadPNG: Failed to load 'NotFound: /home/ingo/projects/tuxkart/stonegrass.png': Couldn't open NotFound: /home/ingo/projects/tuxkart/stonegrass.png Fatal signal: Segmentation Fault (SDL Parachute Deployed) Cheers, Ricardo Em Domingo, 5 de Setembro de 2004 21:45, o Ricardo Cruz escreveu: > Hello, > > I've done some investigation and I'm positive the main leak (there might > be others) is on widget_image.cxx. make_image_from_font() or any other > function it uses is most likely leaking. > I've already coded another make_image_from_surface(), but the problem > prevails. I really dunno where the leak is, but I believe it's from there > somewhere. > > Cheers, > Ricardo > > Em Domingo, 5 de Setembro de 2004 17:37, o James Gregory escreveu: > > Does anyone know where to start looking for whatever the show-stopping > > problem in the tuxkart cvs is right now? > > > > It's pretty frustrating trying to find out what the problem is as each > > time I run tuxkart I have to reboot my computer. > > > > cvs -z3 history -a -e -D "8 days ago" gives: > > > > U 2004-09-02 04:17 +0000 evilynux 1.1 Player.cxx > > tuxkart/src == <remote>/src > > U 2004-09-02 04:17 +0000 evilynux 1.1 Player.h > > tuxkart/src == <remote>/src > > M 2004-08-28 16:35 +0000 jamesgregory 1.4 gownsbow.track > > tuxkart/data == <remote> > > M 2004-08-28 16:35 +0000 jamesgregory 1.4 startrack.track > > tuxkart/data == <remote> > > M 2004-08-29 00:55 +0000 jamesgregory 1.5 ConfigControls.cxx > > tuxkart/src/gui == <remote> > > M 2004-08-29 00:55 +0000 jamesgregory 1.9 NumPlayers.cxx > > tuxkart/src/gui == <remote> > > M 2004-08-29 00:55 +0000 jamesgregory 1.7 Options.cxx > > tuxkart/src/gui == <remote> > > M 2004-08-29 00:55 +0000 jamesgregory 1.3 PlayerControls.cxx > > tuxkart/src/gui == <remote> > > U 2004-09-01 18:32 +0000 jamesgregory 1.1 Player.cxx > > tuxkart/src == <remote>/src > > U 2004-09-01 18:32 +0000 jamesgregory 1.1 Player.h > > tuxkart/src == <remote>/src > > U 2004-09-05 13:42 +0000 jamesgregory 1.10 StartScreen.cxx > > tuxkart/src == <remote> > > U 2004-09-05 13:45 +0000 jamesgregory 1.35 sdldrv.cxx > > tuxkart/src == <remote> > > G 2004-08-29 10:24 +0000 matzebraun 1.36 Driver.cxx > > tuxkart/src == <remote>/src > > U 2004-09-02 14:18 +0000 matzebraun 1.1 Player.cxx > > tuxkart/src == <remote>/src > > U 2004-09-02 14:18 +0000 matzebraun 1.1 Player.h > > tuxkart/src == <remote>/src > > G 2004-09-04 12:46 +0000 matzebraun 1.35 RaceGUI.cxx > > tuxkart/src/gui == <remote>/src/gui > > O 2004-08-28 21:39 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > M 2004-08-28 22:05 +0000 oaf_thadres 1.5 Config.cxx > > tuxkart/src == <remote> > > M 2004-08-28 22:05 +0000 oaf_thadres 1.3 Config.h > > tuxkart/src == <remote> > > M 2004-08-28 22:05 +0000 oaf_thadres 1.47 KartDriver.cxx > > tuxkart/src == <remote> > > M 2004-08-28 22:22 +0000 oaf_thadres 1.7 sound.cxx > > tuxkart/src == <remote> > > M 2004-08-28 22:22 +0000 oaf_thadres 1.6 sound.h > > tuxkart/src == <remote> > > M 2004-08-28 22:41 +0000 oaf_thadres 1.77 start_tuxkart.cxx > > tuxkart/src == <remote> > > O 2004-08-29 17:38 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-08-29 19:41 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-08-29 19:49 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > M 2004-08-29 19:50 +0000 oaf_thadres 1.6 Config.cxx > > tuxkart/src == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.4 Config.h > > tuxkart/src == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.39 Makefile.am > > tuxkart/src == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.35 sdldrv.cxx > > tuxkart/src == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.12 sdldrv.h > > tuxkart/src == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.4 PlayerControls.cxx > > tuxkart/src/gui == <remote> > > M 2004-08-29 19:50 +0000 oaf_thadres 1.3 PlayerControls.h > > tuxkart/src/gui == <remote> > > O 2004-08-30 03:02 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-09-01 02:17 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > M 2004-09-01 02:21 +0000 oaf_thadres 1.7 Config.cxx > > tuxkart/src == <remote> > > A 2004-09-01 02:21 +0000 oaf_thadres 1.1 Player.cxx > > tuxkart/src == <remote> > > A 2004-09-01 02:21 +0000 oaf_thadres 1.1 Player.h > > tuxkart/src == <remote> > > O 2004-09-01 14:17 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-09-02 04:19 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-09-02 22:00 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-09-03 13:24 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-09-05 02:44 +0000 oaf_thadres tuxkart =tuxkart= > > <remote>/* > > O 2004-08-29 16:25 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > M 2004-08-29 17:24 +0000 rmcruz 1.30 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-08-29 17:24 +0000 rmcruz 1.8 RaceGUI.h > > tuxkart/src/gui == <remote> > > O 2004-08-30 20:59 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > O 2004-08-31 17:45 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > O 2004-09-01 11:43 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > O 2004-09-01 11:56 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > M 2004-09-01 15:22 +0000 rmcruz 1.31 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-09-01 15:22 +0000 rmcruz 1.9 RaceGUI.h > > tuxkart/src/gui == <remote> > > M 2004-09-01 21:45 +0000 rmcruz 1.32 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-09-01 21:45 +0000 rmcruz 1.10 RaceGUI.h > > tuxkart/src/gui == <remote> > > M 2004-09-01 22:15 +0000 rmcruz 1.33 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-09-01 22:15 +0000 rmcruz 1.11 RaceGUI.h > > tuxkart/src/gui == <remote> > > M 2004-09-02 13:48 +0000 rmcruz 1.34 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-09-02 13:48 +0000 rmcruz 1.12 RaceGUI.h > > tuxkart/src/gui == <remote> > > O 2004-09-03 11:11 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > M 2004-09-04 11:17 +0000 rmcruz 1.35 RaceGUI.cxx > > tuxkart/src/gui == <remote> > > M 2004-09-04 11:17 +0000 rmcruz 1.13 RaceGUI.h > > tuxkart/src/gui == <remote> > > O 2004-09-04 14:34 +0000 rmcruz tuxkart =tuxkart= > > <remote>/* > > > > At what point did it stop working? > > To summarise the above, the people who have edited tuxkart most > > recently, most recent edit last, are: > > > > evilynux > > jamesgregory > > maztebraun > > oaf_thadres > > rmcruz > > > > James > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Tuxkart-devel mailing list > > Tux...@li... > > https://lists.sourceforge.net/lists/listinfo/tuxkart-devel -- For children with short attention spans: boomerangs that don't come back. |