The shoutbox is currently out of service. Join us on Discord instead.

[gLib][3d][z80][ez80] gLib a fast 3D asm/axiom library

Started by TheMachine02, January 19, 2015, 05:10:01 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheMachine02

Well it depends from the monster, and at least in VIII the attacks are kinda different. But in all case ther are like super hard to defeat  <_<

DJ Omnimaga

Yeah I remember that 1 vs 1 battle with Cloud where I kept hitting the enemy and he would not go down, then I was dead. I hated running into that monster x.x (not as much as Marlboro, tho)

TheMachine02

So I kinda optimized the sorting routine  :P  Should almost be overhead free now.



Next step is raster bugfix and optimization  :P

tr1p1ea

Looks good man!

Did you end up going with avg z still or something else?

TheMachine02

Yeah, still Z-average. It is the faster guess. (Altough I can pretty much change this easily). I figured that backface culling should get rid of most of the fighting issue. If you have a better idea ...  :P

DJ Omnimaga

Pretty good now :D. Hopefully you can optimize it further :)

TheMachine02

Well seeing there is the clipping and backface culling  I need to implement, I am definitly not done optimizing and coding  :P. The pure sorting code will be hard to optimize further though.

DJ Omnimaga

I hope that you can implement both clipping and sorting at the same time O.O

TheMachine02

Quote from: DJ Omnimaga on June 05, 2016, 08:18:55 pm
I hope that you can implement both clipping and sorting at the same time O.O


That shouldn't be an issue  :P

So on side note, I wrote a timer code, and I've been able to analyse a frame, for the chocobo model (341 vertices, 563 faces). The frame is composed as follow :

-vertices transform  -   890000 TStates
-sorting                     -   230000 TStates
-clear framebuff       -   530000 TStates
-triangle drawing      - 2300000 TStates

Which put the frame at around ~4000000 TStates, or about ~12fps. Impressive I guess !  :P

DJ Omnimaga

Yeah 12 is very nice for a calculator. :)

TheMachine02

It also put the triangle filling routine at ~4000TStates (for small triangle size at least), or about 12000 Triangles/s  :w00t:

DJ Omnimaga

By the way, how fast a Starwing space ship is? I forgot if that was attempted.

TheMachine02

Wasn't tested, but given the model I found on the net (36 vertices, 52 faces), it is quite fast :


(512 frames for one turn)

EDIT : and yeah, it broke z-sorting too.

Snektron

Quote from: TheMachine02 on June 09, 2016, 10:12:47 am
Quote from: DJ Omnimaga on June 05, 2016, 08:18:55 pm
I hope that you can implement both clipping and sorting at the same time O.O


That shouldn't be an issue  :P

So on side note, I wrote a timer code, and I've been able to analyse a frame, for the chocobo model (341 vertices, 563 faces). The frame is composed as follow :

-vertices transform  -   890000 TStates
-sorting                     -   230000 TStates
-clear framebuff       -   530000 TStates
-triangle drawing      - 2300000 TStates

Which put the frame at around ~4000000 TStates, or about ~12fps. Impressive I guess !  :P


530000 for a frame clear? o.o
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

Yeah <_<. This is about 76800 bytes to clear at 7 TStates/bytes. (Actually it is more 540000TStates)

Powered by EzPortal