View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006047 | Multi Theft Auto : San Andreas | Client | public | 2011-04-20 09:55 | 2011-08-06 12:29 |
Reporter | MCvarial | Assigned To | ccw | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | 1.1 | Fixed in Version | 1.1 | ||
Summary | 0006047: Function to check wether a player has used alt+tab | ||||
Description | In other words a function to check wether MTA is minimized. | ||||
Tags | No tags attached. | ||||
|
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. |
|
you can turn server fps limiter ON and set it to 70 for example |
|
That doesn't work. |
|
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. |
|
onClientMinimize and onClientRestore fixes this issue. |