Get pixel data, which is faster.. texture or surface?

if i am getting pixel data from a largeish image (1000x1000) which will be
higher performance for getting pixel data, getting pixel from a surface or
a texture?

A surface stored in RAM will be faster. Retrieving pixel data from GPU
memory where textures are stored is extremely slow.On Tue, Mar 17, 2015 at 1:05 PM, Neil White wrote:

if i am getting pixel data from a largeish image (1000x1000) which will be
higher performance for getting pixel data, getting pixel from a surface or
a texture?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

i am struggling how to draw into a surface, sdl_gfx draws to a render /
texture , cant find code that allows primitives in a surface, or to make a
texture into a surface, or even save texture as png, whatever;) any help,
stuck behind internet cant irc.On Tue, Mar 17, 2015 at 9:19 AM, Iv?n Vodopiviz wrote:

A surface stored in RAM will be faster. Retrieving pixel data from GPU
memory where textures are stored is extremely slow.

On Tue, Mar 17, 2015 at 1:05 PM, Neil White <@Neil_White> wrote:

if i am getting pixel data from a largeish image (1000x1000) which will
be higher performance for getting pixel data, getting pixel from a surface
or a texture?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

irc is on freenode servers kids #sdl it’s the real facebookOn Tue, Mar 17, 2015 at 12:12 PM, Neil White <@Neil_White> wrote:

i am struggling how to draw into a surface, sdl_gfx draws to a render /
texture , cant find code that allows primitives in a surface, or to make a
texture into a surface, or even save texture as png, whatever;) any help,
stuck behind internet cant irc.

On Tue, Mar 17, 2015 at 9:19 AM, Iv?n Vodopiviz wrote:

A surface stored in RAM will be faster. Retrieving pixel data from GPU
memory where textures are stored is extremely slow.

On Tue, Mar 17, 2015 at 1:05 PM, Neil White <@Neil_White> wrote:

if i am getting pixel data from a largeish image (1000x1000) which will
be higher performance for getting pixel data, getting pixel from a surface
or a texture?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Create a software renderer. Software renderer draws to & from a surface.
Check the sdl api docs at libsdl.org on how to create & use a software
renderer.

Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter: http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming
Mobile: 9997478768On Wed, Mar 18, 2015 at 12:43 AM, Neil White wrote:

irc is on freenode servers kids #sdl it’s the real facebook

On Tue, Mar 17, 2015 at 12:12 PM, Neil White wrote:

i am struggling how to draw into a surface, sdl_gfx draws to a render /
texture , cant find code that allows primitives in a surface, or to make a
texture into a surface, or even save texture as png, whatever;) any help,
stuck behind internet cant irc.

On Tue, Mar 17, 2015 at 9:19 AM, Iv?n Vodopiviz wrote:

A surface stored in RAM will be faster. Retrieving pixel data from GPU
memory where textures are stored is extremely slow.

On Tue, Mar 17, 2015 at 1:05 PM, Neil White wrote:

if i am getting pixel data from a largeish image (1000x1000) which will
be higher performance for getting pixel data, getting pixel from a surface
or a texture?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

thanks i figured i was being an idiot ;)On Wed, Mar 18, 2015 at 3:39 AM, Pallav Nawani wrote:

Create a software renderer. Software renderer draws to & from a surface.
Check the sdl api docs at libsdl.org on how to create & use a software
renderer.

Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter: http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming
Mobile: 9997478768

On Wed, Mar 18, 2015 at 12:43 AM, Neil White <@Neil_White> wrote:

irc is on freenode servers kids #sdl it’s the real facebook

On Tue, Mar 17, 2015 at 12:12 PM, Neil White <@Neil_White> wrote:

i am struggling how to draw into a surface, sdl_gfx draws to a render /
texture , cant find code that allows primitives in a surface, or to make a
texture into a surface, or even save texture as png, whatever;) any help,
stuck behind internet cant irc.

On Tue, Mar 17, 2015 at 9:19 AM, Iv?n Vodopiviz wrote:

A surface stored in RAM will be faster. Retrieving pixel data from GPU
memory where textures are stored is extremely slow.

On Tue, Mar 17, 2015 at 1:05 PM, Neil White <@Neil_White> wrote:

if i am getting pixel data from a largeish image (1000x1000) which
will be higher performance for getting pixel data, getting pixel from a
surface or a texture?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org