Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TedMar, AndrewAMD), 1,344 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
some question on dll and minimize #394704
02/15/12 22:07
02/15/12 22:07
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
hi
i have 2 questions:
1- i used on_esc=NULL but in fullscreen sometime when i hited esc key, engine was minimized. why?

2-i made a small dll .it must call in each frame and work fine in gs but , i have problem with fps.when it run , maximum engine fps is go to 20 . dll functions are not slow but fps is very low.
is there any tips/tricks for making dll?
has any one faced this probleem?

Re: some question on dll and minimize [Re: flatron] #394715
02/16/12 00:42
02/16/12 00:42
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
1. If the engine gets minimized (not closed!) when you press escape it cuold be that another program has got a hook on escape. Ensure on_esc is really null. You can do that by writing "printf("%d",(long)on_esc);" Another function could have set the on_esc pointer.

2. If calling the dll every frame causes a significant slowdown then that slowdown is of course caused by the plugin. If you comment the line out, that calls the dll function, does the fps go back to normal then?


Always learn from history, to be sure you make the same mistakes again...
Re: some question on dll and minimize [Re: Uhrwerk] #394716
02/16/12 01:12
02/16/12 01:12
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
thank you for your quick answer

1-i check my code and in just one line i set on_esc=NULL
and i write printf("%d",(long)on_esc); and now i can see a number (261153896)
what dose it mean?

2-yes when i comment call functions fps goes back to normal

3- why it stops on a very low fps (about 20 - 23) on a wide range of computers?
i test it with a very high configured pc and a medium pc . fps didn't change.
if i use a slow command , it must have better fps on high pc

thank you.

Re: some question on dll and minimize [Re: flatron] #394718
02/16/12 02:52
02/16/12 02:52
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
1. That's the address contained within the on_esc pointer. The number itself is not of interest. But that the number is different than 0 clearly shows that on_esc is not NULL. Why don't you post your code so that we can have a look at this together?

2. Well there you have your proof that the plugin is causing fps slowdown. It's pretty hard to guess why this is the case as I don't have any information on the plugin. However, when you call a function inside a dll that needs a long time to return then this function either has to do complex calculations, just wastes time idling around or is forced to wait for an IO operation, e.g. a network activity.

3. That is not necessarily the case. See above at point 2. Additionally the plugin could set fps_max.


Always learn from history, to be sure you make the same mistakes again...
Re: some question on dll and minimize [Re: Uhrwerk] #394728
02/16/12 07:40
02/16/12 07:40
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Do you include default.c?


3333333333
Re: some question on dll and minimize [Re: Quad] #394790
02/16/12 16:01
02/16/12 16:01
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That was my first guess but the engine would just close and not minimize in this case.


Always learn from history, to be sure you make the same mistakes again...

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1