View Issue Details

IDProjectCategoryView StatusLast Update
0006047Multi Theft Auto : San AndreasClientpublic2011-08-06 12:29
ReporterMCvarialAssigned Toccw 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version 
Target Version1.1Fixed in Version1.1 
Summary0006047: Function to check wether a player has used alt+tab
Description

In other words a function to check wether MTA is minimized.

TagsNo tags attached.

Activities

arranTuna

2011-04-20 20:27

manager   ~~0013210

Because MTA goes to around 200 FPS (for me at least) when minimized this results in scripts which do lots of things with onClientRender using up large amounts of CPU. So this function could be used to stop these things running or alterantively stop MTA from getting such high FPS while minimized.

MX_Master

2011-04-20 21:02

viewer   ~~0013211

you can turn server fps limiter ON and set it to 70 for example

arranTuna

2011-04-20 21:23

manager   ~~0013212

That doesn't work.

Gamesnert

2011-04-20 22:48

developer   ~~0013213

Wouldn't it be a better suggestion to just fix the FPS issue itself then?

Not that this doesn't have any other uses, but I think it should rather be some sort of "isGameFocussed" function to check whether MTA has been focussed. This way, it will also detect if a player is using a program other than MTA while in windowed mode, allowing scripters to check for players doing anything that's not MTA related.

That way, the function could still have use.

arranTuna

2011-08-05 10:32

manager   ~~0014146

onClientMinimize and onClientRestore fixes this issue.

http://code.google.com/p/mtasa-blue/source/detail?r=2945

Issue History

Date Modified Username Field Change