* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: gLib a fast 3D asm/axiom library  (Read 62600 times)

0 Members and 2 Guests are viewing this topic.

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #465 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.
« Last Edit: April 17, 2017, 04:51:06 pm by TheMachine02 »

Offline tr1p1ea

  • Full User
  • Join Date: Feb 2015
  • Location:
  • Posts: 262
  • Post Rating Ratio: +4/-1
Re: gLib a fast 3D asm/axiom library
« Reply #466 on: April 18, 2017, 12:14:23 am »
Amazingly impressive, the speed is awesome!

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

Offline c4ooo

  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 1012
  • Post Rating Ratio: +12/-4
  • Advanced forumer
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #467 on: April 18, 2017, 12:50:04 am »
You would make a game with this - doom maybe? :)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #468 on: April 18, 2017, 07:01:33 am »
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.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #469 on: April 18, 2017, 02:16:51 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-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #470 on: April 19, 2017, 09:01:33 pm »
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

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #471 on: May 05, 2017, 12:31:30 pm »
Implemented per vertex lightning, so I have an almost rock solid vertex shader now  :P I also have a key transparency for texture set.




Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #472 on: May 05, 2017, 02:14:28 pm »
This is just getting better and better O.O
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 2293
  • Post Rating Ratio: +9/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #473 on: May 05, 2017, 02:59:10 pm »
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 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)

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #474 on: May 05, 2017, 09:55:33 pm »
Wings is just an effect of backface culling. So yeah not a bug just model issue.

Offline tr1p1ea

  • Full User
  • Join Date: Feb 2015
  • Location:
  • Posts: 262
  • Post Rating Ratio: +4/-1
Re: gLib a fast 3D asm/axiom library
« Reply #475 on: May 06, 2017, 09:45:42 am »
Looks awesome as always!

Offline Lionel Debroux

  • Full User
  • Join Date: Jan 2015
  • Location:
  • Posts: 224
  • Post Rating Ratio: +11/-0
    • debrouxl
    • 58/5891
Re: gLib a fast 3D asm/axiom library
« Reply #476 on: May 27, 2017, 07:10:36 am »
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.

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 356
  • Post Rating Ratio: +14/-0
Re: gLib a fast 3D asm/axiom library
« Reply #477 on: September 10, 2017, 09:29:40 pm »
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

Offline tr1p1ea

  • Full User
  • Join Date: Feb 2015
  • Location:
  • Posts: 262
  • Post Rating Ratio: +4/-1
Re: gLib a fast 3D asm/axiom library
« Reply #478 on: September 10, 2017, 10:48:22 pm »
Looks awesome man! The detail is crazy good.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: gLib a fast 3D asm/axiom library
« Reply #479 on: September 13, 2017, 05:14:26 pm »
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-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games