Jump to content


Photo

Gmath


  • This topic is locked This topic is locked
6 replies to this topic

#1 Firebs1234

Firebs1234

    GMC Member

  • New Member
  • 38 posts

Posted 03 April 2007 - 08:11 PM

---GMath---
(Stands for Game Maker mATH)

This Dll takes the basic math functions(add,subtract,multiply,divide)
and has windows solve them. This means that the game
doesn't have to solve them, Windows will take it's time to solve it so
your game doesn't slow down becase of large math calculations.
(Don't know if this is true :blink: )

[Link Removed]
  • 0

#2 Tag

Tag

    GMC Member

  • New Member
  • 61 posts

Posted 03 April 2007 - 09:08 PM

---GMath---
(Stands for Game Maker mATH)

This Dll takes the basic math functions(add,subtract,multiply,divide)
and has windows solve them. This means that the game
doesn't have to solve them, Windows will take it's time to solve it so
your game doesn't slow down becase of large math calculations.
(Don't know if this is true :blink: )

GMath. *Link Removed*

<{POST_SNAPBACK}>


I suppose maybe calling the dll from the game may take up more App time than simply just putting in an equation.

This may only be helpful if you do something such as
var = ((4*x^y/7+(6*x)^89/y)/2+(room_width-(room_height/2))+(sin(x/y)*cos(y/x))-(room_width/2)+image_number)*2+sign(x/y);
draw_text(16,var,"hi");

That just may take more processing power than necessary to just write "hi" on the screen, but you get the point! :o

Edited by KC LC, 06 April 2007 - 09:37 AM.

  • 0

#3 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 03 April 2007 - 11:56 PM

Windows will take it's time to solve it so
your game doesn't slow down becase of large math calculations.

This is only true if the dll is threaded. Judging by the apparent simplicity of the dll and no mention of this word, I would assume that the dll is not threaded, so that statement is incorrect.

Furthermore, as Tag said, there is some overhead to calling a dll, so it would actually be slower to calculate the math using a dll than with GM - unless the dll is capable of evaluating expressions, which is highly unlikely since, again, it seems like a simple dll and there was no mention of this capability.
  • 0

#4 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 04 April 2007 - 11:52 AM

Indeed,This only works when it's treaded.
And only when you submit a list of math formula's to the DLL and make a single function which executes it, this could be faster.
But that would only make results when it needs to be called in a loop.

Edited by h0bbel, 04 April 2007 - 11:56 AM.

  • 0

#5 Firebs1234

Firebs1234

    GMC Member

  • New Member
  • 38 posts

Posted 04 April 2007 - 09:07 PM

Ohh... Did I need to replace the "/* */" comments for threading? :D
So it might not work? ;)
Fine, I have to... to... LEARN C PROGRAMMING!!!!!
But that doesn't make any sense! :GM071:
  • 0

#6 h0bbel

h0bbel

    GMC Member

  • New Member
  • 252 posts

Posted 05 April 2007 - 01:19 PM

Ohh... Did I need to replace the "/* */" comments for threading? :(
So it might not work? :D
Fine, I have to... to... LEARN C PROGRAMMING!!!!!
But that doesn't make any sense! ;)

<{POST_SNAPBACK}>


What comments :lol: in your source ?
  • 0

#7 Shaltif

Shaltif

    The Audio Master

  • Retired Staff
  • 1185 posts

Posted 05 April 2007 - 03:25 PM

I'm just going to close this before it gets out of hand. I'm also not sure if the creator even used his own source code or understands what he is doing (which means not only is this probably not doing what is advertised, but could be full of critical errors and oversights), judging by his last statement about removing comments to include 'threading support'.

This also doesn't include any scripts to use the DLL in Game Maker...tsk tsk.

Firebs1234, before you make a DLL for Game Maker, you need to understand (fully) the language you are developing the DLL with. Especially if you plan to support a feature such as threading, which can cause system instability and memory issues if used incorrectly. Unlike Game Maker, it's much easier to make a simple mistake in a DLL that can cause an entire system to crash or possibly do irreversible damage to a user's machine.

This creation is not only useless, but it begs to question how safe the creation really is for an end user. At this point, I'm going to remove the link and close this topic.

Next time, I want to see a little more of a knowledgeable effort put into such a creation.

~Brandon
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users