Join us on Discord!
You can help CodeWalrus stay online by donating here.

[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 2 Guests are viewing this topic.

TheMachine02

#465
Well I don't have a 80 tris model in my hand right now and I have a old and buggy (and pretty much unoptimized) glib version on this computer; but :



212 tris, 155 verts. I would expect a minimum 30% speed boost against the current code I have.

EDIT : take a look at this screen, though :



Nearly 1400 tris, 1000 verts. And it run at about 280ms/frame. Given that rendering time scale quite well number of tris and vertex, I *think* 80 poly model should run under 40ms.

tr1p1ea

Amazingly impressive, the speed is awesome!

What would you say is your favourite speed optimisation so far?

c4ooo


TheMachine02

I think the code I am most proud of is the vertex shader which is quite efficient and especially the perspective divide,  who doesnt even use a true division. It is about 2500 cycles max per vertex.

Dream of Omnimaga

Quote from: TheMachine02 on April 17, 2017, 04:46:38 PM
Well I don't have a 80 tris model in my hand right now and I have a old and buggy (and pretty much unoptimized) glib version on this computer; but :



212 tris, 155 verts. I would expect a minimum 30% speed boost against the current code I have.

EDIT : take a look at this screen, though :



Nearly 1400 tris, 1000 verts. And it run at about 280ms/frame. Given that rendering time scale quite well number of tris and vertex, I *think* 80 poly model should run under 40ms.
That is awesome. With reduced poly count, we could definitively have a full game running at acceptable FPS. 8 FPS for a 3D calc game would definitively be good.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

TheMachine02

It should indeed. Well as long as framerate is somewhere between 6 to 10 fps it feel responsive enough. Still more polygons would be welcome  :P
* TheMachine02 returns optimizing

TheMachine02

Implemented per vertex lightning, so I have an almost rock solid vertex shader now  :P I also have a key transparency for texture set.




Dream of Omnimaga

This is just getting better and better O.O
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

were the second model's wings ment to be hidden when shown  from behind...?  ;)

looks great as always, nice job!  :thumbsup:
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

TheMachine02

Wings is just an effect of backface culling. So yeah not a bug just model issue.

tr1p1ea


Lionel Debroux

It had been a while since I read this topic. That's fantastic work, as usual :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

TheMachine02

It isn't dead !


(London, the whole level 4 of tomb raider. ~3500 triangles and 2000 vertices)

Don't look at the lightning, it is broken  :P

Seriously optimizing is taking most of my time now, and it is ... like .. you know hard  :P

tr1p1ea


Dream of Omnimaga

Looks good ^^

I wonder how would a small portion of Mario 64's castle (the first room) render and look like? :p
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal