Forum » » Création-Développement » » Ou sont les sources de SuperTuxKart pour Amiga?
Posté : 13-09-2012 15:52
Pour info : trop crevé pour traduire....
Enfin on sait pourquoi ce Tux est lent
Alain
-----------------------------------------------------------------------------
-
>>>I can dig in on my HDD for sources, but in general its the same sources 1:1 from the SVN repo with version 0.6.2a. There is:
>>>http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.6.2/supe
rtuxkart-0.6.2a-src.tar.bz2/download
> > BTW I have already checked the sourceforge sources and it
> dont seems to !include! any drawing code (ie GL)
> > So do you have the PLIB sources as it seems to use it for drawing ?
>
> Can't remember to be honest where actual drawing code done,
> but yep, i build PLIB expectually for that game, here is:
>
http://os4depot.net/index.php?function=showfile&file=developme > nt/library/toolkit/plib.lha
Hello again
Kas1e wrote
> As far as i remember, you can do "profiling" with wazp3d ?
> Maybe we can see what cause slownesses there ?
Yes have obtained a 45 MB log file :-/ only for some seconds of SuperTuxKart
I have found something
SuperTuxKart use (or PLIB do that ?) drawarray BUT for EACH polygon
(me for cow3D I draw 1000 polygons each time that I call drawarray)
So for around 64 frames generated then drawarray() is called 68891 times
==> around 1000 drawarray per frame
(but intro dont have much polygon, last drawn frame call drawarray 4400 times
(( )
==> Each polygon is truly draw with a drawarray
( drawarray can draw a full (single material) object)
Bad bad bad :-/
=============================================
From PLIB sources
void ssgVtxTable::draw_geometry ()
{
[...]
glDrawArrays ( gltype, 0, num_vertices ) ;
[...]
}
void ssgVtxTable::draw ()
{
[...]
draw_geometry () ;
[...]
}
But i didnt found what/where call draw() in SuperTuxkart or PLIB
Alain
Cet article provient de Le site des utilisateurs francophones actuels et futurs d'AmigaOS 4.x
https://amiga-ng.org/viewtopic.php?topic=1369&forum=14