Help creating Static Polygons for fast drawing
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
Basically the ram at ~88MB can hold (22/3) million vectors before it has to read from disc
At 3 TEVs to with data parallelism to read 777.6 million vectors if storage was perfect.
At 3 TEVs to with data parallelism to read 777.6 million vectors if storage was perfect.
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
I was a little unclear since you it's hard to search two values with trees efficiently since you'll likely have to overdraw taking 5 tevs. If you use trees efficiently and calculater spherically to 8 trig variables with that many dimensions it should get you 2 terraflops at best. This was just to get spherical coords with 2 dimensions.
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
Made a mistake 2Tflops is 4 trig functions 5 dimensions using tevs with some values stored in edram.
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
I think i need multipass rendering any advice?
-
- Site Admin
- Posts: 1989
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Help creating Static Polygons for fast drawing
Nobody is saying you can't use arrays. Binary data embedded in the application directly is still an array, it just isn't going through an intermediate stage of being converted from human readable data to machine readable data by the compiler. Data loaded from external files is still an array - assuming you read the data into an array.
Your problem is most likely caused entirely by attempting to build the arrays in C.
Your problem is most likely caused entirely by attempting to build the arrays in C.
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
Basically i have to read data in from files using stacks and queue which have o(n) traverse time? i only need a linear set so i could burn 256 tevs and 1 register(what are my options other than main tev)
What i want to do is store tev calculations/rendered polygons/calculated data without crashing the compiler. Rendering less than the wii's max is causing black screen. How would i render that model in the zip?
What i want to do is store tev calculations/rendered polygons/calculated data without crashing the compiler. Rendering less than the wii's max is causing black screen. How would i render that model in the zip?
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
Isn't there an = to command that upholds machine language.
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
Also How do you get displaylists to work?
currently this compiles but i don't think its right
char Dcommand=(char*)(GX_Begin);
char QuadVAL=(char*)GX_QUADS;
char Nullers=(char*)GX_NONE;
char caster[]=
{
Dcommand,
QuadVAL,'0', '36',
'8', '0', '7', '0', '2', '0', '3','0',
'1', '1', '2', '1', '7', '1', '6','1',
'1', '2', '0', '2', '9', '2', '10','2',
'4', '1', '1', '1', '10', '1', '11', '1',
'1', '2', '12', '2', '13', '2', '2', '2',
'2', '0', '13', '0', '14', '0', '5', '0',
'18', '2', '15', '2', '16', '2', '17', '2',
'20', '1', '17', '1', '16', '1', '19', '1',
'20', '0', '21','0', '18', '0', '17', '0',
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers,
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers,
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers};
u8 *cat1 ATTRIBUTE_ALIGN(32)=(u8*)caster;
/*(should it be void?)*/
GX_CallDispList(cat1,600);
currently this compiles but i don't think its right
char Dcommand=(char*)(GX_Begin);
char QuadVAL=(char*)GX_QUADS;
char Nullers=(char*)GX_NONE;
char caster[]=
{
Dcommand,
QuadVAL,'0', '36',
'8', '0', '7', '0', '2', '0', '3','0',
'1', '1', '2', '1', '7', '1', '6','1',
'1', '2', '0', '2', '9', '2', '10','2',
'4', '1', '1', '1', '10', '1', '11', '1',
'1', '2', '12', '2', '13', '2', '2', '2',
'2', '0', '13', '0', '14', '0', '5', '0',
'18', '2', '15', '2', '16', '2', '17', '2',
'20', '1', '17', '1', '16', '1', '19', '1',
'20', '0', '21','0', '18', '0', '17', '0',
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers,
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers,
Nullers, Nullers, Nullers, Nullers, Nullers, Nullers, Nullers};
u8 *cat1 ATTRIBUTE_ALIGN(32)=(u8*)caster;
/*(should it be void?)*/
GX_CallDispList(cat1,600);
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
I got a weird output.
the cube is the displaylist which flickers?
the cube is the displaylist which flickers?
- Attachments
-
- weird displaylist.png
- (41.54 KiB) Not downloaded yet
-
- Posts: 28
- Joined: Sat Apr 13, 2013 10:40 pm
Re: Help creating Static Polygons for fast drawing
I think it has something to do with how deflicker and such is handled since the Polygons are being precomputed. Would I have to implement some additional code to stablize the framerate/framebuffer. I think I figured it out its because the array of characters is declared in CPU RAM and when it is feed to GPU there is desync. Is there anyway to combine the casting and declaration with attribute allign maintaining the char datatype for void type pointer?
Who is online
Users browsing this forum: No registered users and 1 guest