Gambas-it

Gambas dal mondo esterno => Mailing List => Topic aperto da: vuott - 29 Dicembre 2014, 11:09:59

Titolo: Perché installato il nuovo componente SDL2 ?
Inserito da: vuott - 29 Dicembre 2014, 11:09:59
Vi riporto questo messaggio di Minisini relativo all'aggiunta fra i coponenti di Gambas di gb.SDL2:


" Becasue SDL v2 fixes many problems of SDL v1. Alas, the new SDL is not
compatible with the old one, so 'gb.sdl2' will not be compatible with
'gb.sdl'.

Another interesting point is the performance gain: for example, the
BeastScroll example speed (without the music) is 1500 frames/second with
gb.sdl, and 2000 frames/second with gb.sdl2 (now every image is kept on
the graphic card memory as much as possible).

Regards,

--
Benoît Minisini
"
Titolo: Re: Perché installato il nuovo componente SDL2 ?
Inserito da: vuott - 29 Dicembre 2014, 14:46:21
Va precisato che è necessario installare almeno le seguenti librerie:

* libsdl2-dev
* libsdl2-image-dev
* libsdl2-ttf-dev
* libsdl2-mixer-dev
Titolo: Re: Perché installato il nuovo componente SDL2 ?
Inserito da: vuott - 03 Gennaio 2015, 17:38:32
Si sottolinea che l'ormai vecchio componente gb.sdl.sound (ma anche gb.sdl) va considerato obsoleto, ed è stato eliminato dai componenti disponibili in fase di progettazione di un'applicazione.
Titolo: Re: Perché installato il nuovo componente SDL2 ?
Inserito da: vuott - 03 Gennaio 2015, 18:20:51
Bisognerà, quindi, tenere conto di ciò anche in riferimento ai programmmi già realizzati e che eventualmente utilizzano il vecchio componente gb.sdl.sound .
Al riguardo rinvio a questa discussione: http://www.gambas-it.org/smf/index.php?topic=3862