View Full Version : OpenGL Degrading FPS
Swag Bag
07-08-2015, 03:21 AM
Hi I've recently begun using OpenGL, and have encountered a fairly large problem. After some time in the SMART client while running OpenGL, the fps degrades starting around 15 minutes and gets progressively worse. I don't seem to be having any problems in the normal Runescape client. My system can definitely handle the requirements (i7, 8gb ram, decent gpu). Does anyone have any idea what is going on, or a fix?
Edit: This happens very severely when in the lobby, but still happens regardless.
KeepBotting
07-08-2015, 03:28 AM
Check your processes in Task Manager, see if anything (Java or Simba) is leaking memory.
Does this only happen when running a script? If so, check the script and make sure you're freeing all objects from memory after you're done using them.
Lucidity
07-08-2015, 03:36 AM
As I have told you on Skype it is partially because Jagex doesn't dump the previous loaded memory when it's hooked to something. So when you lobby and log back in all your previous data is still being held while new data piles on top of that slowly decreasing your FPS.
Swag Bag
07-08-2015, 04:21 AM
My memory seems to be staying about the same. I still have plenty of ram and cpu % left.
Justin
07-08-2015, 04:22 AM
It's not about RAM and CPU, it's about your graphics card
Twinki
07-08-2015, 05:17 AM
I don't have this problem at all running a GTX 650 Ti, I recall it happening sometimes after I'd log back in after being lobbied.. my FPS would stay at like 10, but other than that my scripts that run for 10 hours+ are perfectly fine with over 30 FPS. Sounds like a GPU problem more than anything.
The Mayor
07-08-2015, 05:42 AM
This problem has been around since the openGL hooking plugin came out in 2013. It simply doesn't work for a lot of people because of the lag. On my computer it drops to 3-4 fps after ~1-2 hours. Supposedly it's a Jagex server-side issue and nothing can be done about it. This is the only reason openGL hasn't been officially developed for SRL. Obscurity went and bought a $500 graphics card just to maintain 30fps. If it works on your computer then you are lucky. That's why everyone is hanging out for Brandon; to put together the finishing touches on the DirectX plugin :D
Thomas
07-08-2015, 06:18 AM
It's not about RAM and CPU, it's about your graphics card
You make it seem like it only depends on how 'strong' your gfx card is, but that isn't true at all.
My old 7950 will still get better fps on most games then your 960, but I also experience the lag.
(Im not bashing your card, might buy the same myself, but just so he doesnt buy a random $500+ Card that still doesnt solve his problem)
Obscurity will have a proper explanation, but IIRC it had something to do with how your gfx cards dumps unneeded stored items, or lack thereof.
Clarity
07-08-2015, 06:23 AM
From a bunch of anecdotal evidence it seems like it is the type of GFX card, rather than the tier. For instance, I experience no FPS issues (unless I log in and out frequently) with integrated graphics.
Don't have the knowledge for a technical explanation however.
Logging in and out will definitely cause you some issues, which I don't think we can avoid at the moment. A stable internet connection and good script quality will prevent this from being a factor anyway. If I happen to log out a lot, I just restart the client.
The Mayor
07-08-2015, 07:03 AM
Logging in and out will definitely cause you some issues.
And from what I saw (using my pc) running back and forth between areas and loading new map chunks escalated the problem significantly. When I bot, I like to bot for a long time. I like the massive multi day proggys but those are just not possible with openGL. That is the main reason most people (including myself) are reluctant contribute to the ogl stuff. I've always thought that their efforts can be better spent elsewhere (i.e., directX), because that seems to work for everyone.
Twinki
07-08-2015, 07:12 AM
And from what I saw (using my pc) running back and forth between areas and loading new map chunks escalated the problem significantly. When I bot, I like to bot for a long time. I like the massive multi day proggys but those are just not possible with openGL. That is the main reason most people (including myself) are reluctant contribute to the ogl stuff. I've always thought that their efforts can be better spent elsewhere (i.e., directX), because that seems to work for everyone.
Ehhrmm.. My Wines script has been going for 12+ Hours now.. and it loads up 3 different times in-between inventories, running just fine with minimal FPS drops. Although, it is the same areas over and over again. I have a bit of faith you could have OGL scripts go for 24 hours+.
The Mayor
07-08-2015, 07:19 AM
Ehhrmm.. My Wines script has been going for 12+ Hours now.. and it loads up 3 different times in-between inventories, running just fine with minimal FPS drops. Although, it is the same areas over and over again. I have a bit of faith you could have OGL scripts go for 24 hours+.
Exactly, it works for you, and that's great :p
Thomas
07-08-2015, 10:45 AM
Ehhrmm.. My Wines script has been going for 12+ Hours now.. and it loads up 3 different times in-between inventories, running just fine with minimal FPS drops. Although, it is the same areas over and over again. I have a bit of faith you could have OGL scripts go for 24 hours+.
Good to know we can add 650ti to the list then.
ClarityWhat cpu are you using? I might unplug my 7950.. And how many bots can you run at a time? :)
Swag Bag
07-08-2015, 01:11 PM
I'm getting a gtx 970 with my new computer so hopefully that will work well. @(The Mayor) Do you know if the Direct X hook will have a similar library or be completely different? I'm excited about this.
Note: How do I tag...
KeepBotting
07-08-2015, 01:31 PM
I'm getting a gtx 970 with my new computer so hopefully that will work well. @(The Mayor) Do you know if the Direct X hook will have a similar library or be completely different? I'm excited about this.
Note: How do I tag...
@Name;
(@ sign, their name, semicolon)
It's not about RAM and CPU, it's about your graphics card
Yes but if an application (such as a game) were leaking memory, wouldn't that kill fps?
The Mayor
07-08-2015, 02:18 PM
I'm getting a gtx 970 with my new computer so hopefully that will work well. @(The Mayor) Do you know if the Direct X hook will have a similar library or be completely different? I'm excited about this.
Note: How do I tag...
I highly doubt it for a number of reasons, but I'll only get into a couple of them:
If directX turns out to be a feasible option I would like to see it integrated into SRL. There would just be a few methods like getModels(), getTextures() and getFonts() and their respective overloads. It doesn't need to be a standalone library because because it's not as powerful as reflection and somethings will still be easier with SRL-6. The only really hard thing with colour is finding objects on the mainScreen, particularly ones with clashing colours.
For example, something like:
program example;
{$DEFINE DX} // If you want it, declare it, else don't
{$DEFINE SMART}
{i srl/srl-6.simba}
procedure mineRock();
var
i: Integer;
TPA: TPointArray;
begin
TPA := dx.getModels(123456, mainScreen.getBounds()).toTPA(); // returning models as a TPA, only look on the MS
TPA.sortFromPoint(mainScreen.playerPoint); // and from here work the TPA like you normally would:
for i := 0 to high(TPA) do
begin
mouse(TPA[i].rand(5), MOUSE_MOVE);
if isMouseOverText(['Mine']) then
begin
fastClick(MOUSE_LEFT);
break;
end;
end;
// or alternatively, do it in one line by returning the closest model as a TPoint
mouse(dx.getModels(2718818122, mainScreen.getBounds()).closest(mainScreen.playerP oint).rand(5), MOUSE_LEFT);
end;
begin
setupSRL();
mineRock();
end;
The last thing we want is more includes floating around. With the release of cLib yesterday I counted 8 individual includes that are currently being used in scripts. It would just be easier for everyone (developers, scripters, script users) if we kept it simple.
Swag Bag
07-08-2015, 03:49 PM
I think DX integrated into SRL would be very powerful. My only beef with SRL is the sometimes unreliable/difficulty finding colors. Everything else I love. If iI could find models and return them in a TPA or an ATPA I would be thrilled
Test tag The Mayor; (sorry)
Lucidity
07-08-2015, 05:37 PM
Bad location for it, but this is after several lobbies + been running like 9 hours, just restarted script after some changes.
edit : in case you can't see it's saying 20 fps
http://puu.sh/iRN8Y/bbfc24f343.png
Was at 14 hours yesterday but this is the only one i've seemed to save
Bly Divination:
===============Progress Report===============
Time running : 08h 21m 46s
XP Gained/XP per hour : 409,635/48,982
Levels gained : 1
Chronicles destroyed : 34
Location : brilliant
=============================================
Scripts can run for long periods of time, just depends on your luck really
Thomas
07-08-2015, 06:23 PM
Bad location for it, but this is after several lobbies + been running like 9 hours, just restarted script after some changes.
edit : in case you can't see it's saying 20 fps
http://puu.sh/iRN8Y/bbfc24f343.png
Was at 14 hours yesterday but this is the only one i've seemed to save
Bly Divination:
===============Progress Report===============
Time running : 08h 21m 46s
XP Gained/XP per hour : 409,635/48,982
Levels gained : 1
Chronicles destroyed : 34
Location : brilliant
=============================================
Scripts can run for long periods of time, just depends on your luck really
We believed you when you've said it works for you. It just doesnt work for everyone.
The Mayor
07-08-2015, 08:46 PM
We believed you when you've said it works for you. It just doesnt work for everyone.
But even then, 20fps is pretty low. Brandon's initial tests were hitting ~50fps with directX ;)
But even then, 20fps is pretty low. Brandon's initial tests were hitting ~50fps with directX ;)
20fps is totally workable for a game like Runescape, though. I've dropped down to 3-5 FPS sometimes, which is definitely too low.
Clutch
07-08-2015, 10:40 PM
One thing Obscurity had told me is that it does not like AMD cards - I just so happened to have a HDD crash and decided to go ahead and get a new machine with an Intel card instead (lower quality then my AMD) and now can run OGL scripts for 12+ hours with no lag. So in short, if you just so happen to be looking at a new machine and want to use for botting look towards Intel.
The Mayor
07-09-2015, 06:21 AM
20fps is totally workable for a game like Runescape, though. I've dropped down to 3-5 FPS sometimes, which is definitely too low.
Yea, and once it gets down that low then the script can't even function!
One thing Obscurity had told me is that it does not like AMD cards - I just so happened to have a HDD crash and decided to go ahead and get a new machine with an Intel card instead (lower quality then my AMD) and now can run OGL scripts for 12+ hours with no lag. So in short, if you just so happen to be looking at a new machine and want to use for botting look towards Intel.
I've heard that too. OGL is amazing when it works, but I really don't see the point in working on something that only half of people can use.
Lucidity; that script looks pretty nice, but I guess you will have to change the paint now ;)
Lucidity
07-09-2015, 06:37 AM
Yea, and once it gets down that low then the script can't even function!
I've heard that too. OGL is amazing when it works, but I really don't see the point in working on something that only half of people can use.
Lucidity; that script looks pretty nice, but I guess you will have to change the paint now ;)
Yes, yes I will! :P it'll be released soon.. maybe a week or so from now :)
Already updated my paint mwuahaha
http://puu.sh/iSy1I/4f3792310a.png
The Mayor
07-09-2015, 07:17 AM
These names are still up for grabs, get in quick
Clarity
Obscurity
Lucidity
Transparancy
Opacity
Obliquity
Translucency
Thomas
07-09-2015, 09:31 AM
One thing Obscurity had told me is that it does not like AMD cards - I just so happened to have a HDD crash and decided to go ahead and get a new machine with an Intel card instead (lower quality then my AMD) and now can run OGL scripts for 12+ hours with no lag. So in short, if you just so happen to be looking at a new machine and want to use for botting look towards Intel.
Intel card? You mean with your cpu? What cpu did you get?
Or do you mean nvidia?
Swag Bag
07-09-2015, 02:44 PM
I think he means nvidia card :D I'm getting a gtx 970 for $300 and I'm hoping that does me well for a while.
Swag Bag
07-09-2015, 02:50 PM
These names are still up for grabs, get in quick
Clarity
Obscurity
Lucidity
Transparancy
Opacity
Obliquity
Translucency
Also:
Pregnancy
Dormancy
Idiocy
Homogeneity
Clarity
07-09-2015, 02:59 PM
Also:
Pregnancy
Dormancy
Idiocy
Homogeneity
Yeah...thanks for the suggestions. Glad I'm such a username trendsetter.
KeepBotting
07-09-2015, 03:30 PM
Yeah...thanks for the suggestions. Glad I'm such a username trendsetter.
Klaruhtee
Clutch
07-09-2015, 04:14 PM
Intel card? You mean with your cpu? What cpu did you get?
Or do you mean nvidia?
Intel On-board graphics...its really crappy; but OGL works great with it.
Thomas
07-09-2015, 09:18 PM
Intel On-board graphics...its really crappy; but OGL works great with it.
Yes then I'm going to unplug my 7950 for sure! How many accounts can you run?
Lucidity
07-09-2015, 10:30 PM
I'm using a nvidia geforce card, runs fine on that
Fresh load :
http://puu.sh/iTmI6/03b731a8a3.png
I'll try running on another PC later and edit this post
Clutch
07-09-2015, 10:54 PM
Yes then I'm going to unplug my 7950 for sure! How many accounts can you run?
I've never tried to run more than one, it can hardly handle playing videos, go to a site filled with ads and it completely freezes up(yes it is that crappy), I'm sure it'll do the same for me if I run more than one account but haven't attempted.
KeepBotting
07-09-2015, 11:11 PM
I've never tried to run more than one, it can hardly handle playing videos, go to a site filled with ads and it completely freezes up(yes it is that crappy), I'm sure it'll do the same for me if I run more than one account but haven't attempted.
>2015
>not using an ad blocker
ublock.org (https://www.ublock.org/)
thank me later
good day, /g/entleman
Clutch
07-10-2015, 12:18 AM
>2015
>not using an ad blocker
ublock.org (https://www.ublock.org/)
thank me later
good day, /g/entleman
It's not a personal computer - I don't use it for much outside of botting.
GetHyper
07-10-2015, 06:31 PM
I get 15 minutes or thereabouts before it lags for me, DX it is.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.