2 registered members (TedMar, AndrewAMD),
1,344
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Expert
|
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: flatron]
#394718
02/16/12 02:52
02/16/12 02:52
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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: Quad]
#394790
02/16/12 16:01
02/16/12 16:01
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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...
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|