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

TheMachine02

I can indeed add that, even if that require slighty more works to correctly interfacing with the OS vars, and being more slow :p
But this is definitly doable.

Dream of Omnimaga

I guess if it used hooks it would be faster, but the problem is that you would need to make sure that the hook chains properly with Doors CS, ZStart, Omnicalc, Symbolic or xLIB.
  • 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

Snektron

Hooks chaining is not really hard (though you need to find a safe place in the ram to store the hook, someone really should make a standard for this), but the user also has to activate them in the right order
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Yeah that's the issue I think. In your case, would the hook have to be installed after DCS?

As for standards, Kerm started a topic in 2013 to setup some standards right from the start on the CSE, so I assume it will be the same for the CE. This is to avoid problems like on the 83+ where we ended up with about 3-4 different shells and libs of programs and stuff like xLIB that didn't chain properly with Symbolic/Omnicalc. So when ASM really gets started on that calc, if you ever decide to code for it and port your program, then you might need to make sure to check which RAM area to use and what not to use.
  • 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

Duke "Tape" Eiyeron

Yeah, but not everyone wants the same shell. I'm okay at defining standards but avoid them to be too restrictive and blocks competiton/concurrency.
  • Calculators owned: A lot.

Snektron

Quote from: DJ Omnimaga on April 16, 2015, 03:17:48 AM
Yeah that's the issue I think. In your case, would the hook have to be installed after DCS?
Depends on what the user wants to run first. With a parser hook it shouldn't really matter though (if both apps chain properly) unless
some commands use the same token...
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

Yeah indeed, but I definitely do that a the end, after the asm lib/axiom is complete  :P
Also I like how I have speed up triangle filling code : asm version is 4x faster than axe version XD, and is +-300 bytes smaller... that put the theorical triangle output rate at almost 192 Tri/s, almost 2x more than the axe version  :D ... and I haven't finished to optimize filling and many other things.

Snektron

Wow that's quite a fast algorithm. How do you test the filling algorithm?
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

That's prettty amazing to have that amount of triangles drawn/s as we are on a calculator. Do you take account of the fact that a triagnle close to the camera will take longer to draw than a small triangle?
  • Calculators owned: A lot.

TheMachine02

Quote from: Cumred_Snektron on April 16, 2015, 12:57:56 PM
Wow that's quite a fast algorithm. How do you test the filling algorithm?

cycles counting / fps testing

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 02:05:59 PM
Do you take account of the fact that a triagnle close to the camera will take longer to draw than a small triangle?
Actually I based the calculation on triangles who fill 1536 pxl - one quarter of the screen.

Duke "Tape" Eiyeron

Neato! I can't wait until someone does a RPG with it! :D
  • Calculators owned: A lot.

Snektron

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

And yet, it'll probably get out just after HL3, such projets are really hard to get done.
  • Calculators owned: A lot.

TheMachine02

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 04:08:45 PM
Neato! I can't wait until someone does a RPG with it! :D

Hehe  :P strange things happens

Dream of Omnimaga

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 07:28:37 AM
Yeah, but not everyone wants the same shell. I'm okay at defining standards but avoid them to be too restrictive and blocks competiton/concurrency.
yeah it's more to avoid compatibility issues. For example, many Ion games crashed in MirageOS and vice-versa and if people played Metroid II or XXR they had to uninstall Omnicalc and Symbolic.

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 04:08:45 PM
Neato! I can't wait until someone does a RPG with it! :D
Illusiat 3-D :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