Author Topic: Can it be faster?  (Read 5804 times)

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Can it be faster?
« on: November 21, 2012, 04:48:13 PM »
http://ompldr.org/vZ2R6cw/fgesrc_nov.zip

I wonder if anyone think what Im done is slow and it can be faster. The link above is source code for my game engine. It demonstrate how to use the shadow system. It took 100% CPU usage on my SiS Mirage 3, and maybe somebody ever create faster than this. I'd like to know is this the maximum a graphic card can do or I make the slowest code.

I used RadASM for the IDE. It is recommended you open it using RadASM.
« Last Edit: November 21, 2012, 09:44:31 PM by Farabi »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

nidud

  • Member
  • *****
  • Posts: 2388
    • https://github.com/nidud/asmc
Re: Can it be faster?
« Reply #1 on: November 30, 2012, 06:00:15 AM »
deleted
« Last Edit: February 25, 2022, 05:51:15 AM by nidud »

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: Can it be faster?
« Reply #2 on: November 30, 2012, 06:37:57 AM »
I often use AMD's CodeAnalyst. The statistical approach of the timer based method works for all systems (also Intel). This methode point out critical instructions/ and memory accesses.
MREAL macros - when you need floating point arithmetic while assembling!

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: Can it be faster?
« Reply #3 on: December 01, 2012, 11:04:39 AM »
I put a precompiled binary on the source above. I'd like everyone try it if they had time. The most consuming part is the shadow part since I did not making the shadow based on the sillhoutte but from every vertices that can be a shadow. It slow I know, but that is the limit of my ability.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: Can it be faster?
« Reply #4 on: December 01, 2012, 11:19:42 AM »
I can't see a performance problem (3% CPU usage). Probably you have bad/old graphic card.
BTW, there are two message box coming up at start, but I'm not aware of the used language ;-)
MREAL macros - when you need floating point arithmetic while assembling!

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: Can it be faster?
« Reply #5 on: December 01, 2012, 11:56:46 AM »
I can't see a performance problem (3% CPU usage). Probably you have bad/old graphic card.
BTW, there are two message box coming up at start, but I'm not aware of the used language ;-)

Yeah, I had a bad card. And for the two message box, it was a warning for some of feature from OpenGL that not exist on your card. Thanks for your feedback. I cant afford to buy a new system. Maybe for a couple next years so I stick with it.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165