algiuxas

Draw Image from array to GUI as fast as possible

7 posts in this topic

I'm making simple 3D game, rotating 3D cubes, spheres, and etc., I need to draw triangles as fast as possible, with textures,

but GDIPlus have some limitations witch wouldn't let me make 3D objects.

What I want to do:
I need to draw 2D array of ARGB colors to GUI as fast as possible, that it wouldn't took more than 25 milliseconds.

Would that be possible?
 


42783.png

Share this post


Link to post
Share on other sites



An example of a 2D array which needs to be drawn at min of 40 fps?


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites
11 hours ago, algiuxas said:

Would that be possible?

Maybe, if ussing a other language.

Share this post


Link to post
Share on other sites
17 hours ago, UEZ said:

An example of a 2D array which needs to be drawn at min of 40 fps?

Yeah or even faster, so image is 2D array, every pixel in array has ARGB color.
I need to draw it to GUI.


42783.png

Share this post


Link to post
Share on other sites

Well, if the array size is too large AutoIt will copy the data from the array to the gfx handle slower than 40 fps. To boost it you have to save it to a struct and use for example assembler or an external DLL by passing the struct and the gfx handle.

 

1 person likes this

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Okay... Maybe I'll use Java to make it.

Edited by algiuxas

42783.png

Share this post


Link to post
Share on other sites

#7 ·  Posted

On 29.9.2016 at 8:35 PM, algiuxas said:

I need to draw triangles as fast as possible, with textures,

And what has this to do with an array?

Those triangles/textures are precalculated, any calculation within AutoIt is too slow anyway. Btw. do you have any minimal script to show us what you want (to do)?

And when those triangles are precalculated, there is no need to work with arrays instead of images/bitmaps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now