Alternatively, join us on Discord.

[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.

DJ 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.

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
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ 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.

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.

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...
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?
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?

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

Snektron

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.

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

DJ 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

Powered by EzPortal