* 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 37998 times)

0 Members and 1 Guest are viewing this topic.

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 322
  • Post Rating Ratio: +13/-0
    • View Profile
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: 229
  • Post Rating Ratio: +4/-1
    • View Profile
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: 878
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • 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? :)
??? ??? ???
C'est une signature

Offline TheMachine02

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 322
  • Post Rating Ratio: +13/-0
    • View Profile
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 DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17910
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • 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-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: 322
  • Post Rating Ratio: +13/-0
    • View Profile
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

 


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