-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoblox-GPU-SaverWINDOWSFOCUS
157 lines (128 loc) · 4.45 KB
/
Roblox-GPU-SaverWINDOWSFOCUS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
--[[+
Roblox-GPU-SaverWINDOWSFOCUS;
_VERSION SUB;
dsc.gg/empifyutility;
Licensed under GNU General Public License v3.0;
+]]
_G.LowFPS = true --// Makes the FPS low (Recommened ON)
--\\ Changing this value might glitch UI so keep that in mind
_G.SmoothForEyes = true --// ! UI ! A fresh UI for your Eyes
--@empireundefined
local sv = Instance.new("ScreenGui")
local BG = Instance.new("Frame")
local Some = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local TextLabel = Instance.new("TextLabel")
local TextLabel_2 = Instance.new("TextLabel")
local ImageLabel = Instance.new("ImageLabel")
local TextLabel_3 = Instance.new("TextLabel")
local SomeShadow = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
--@preloadIMAGE
ImageLabel.Image = "http://www.roblox.com/asset/?id=2248101918"
sv.Name = "sv"
sv.Parent = game.CoreGui
sv.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
BG.Name = "BG"
BG.Parent = sv
BG.BackgroundColor3 = Color3.fromRGB(7, 47, 95)
BG.Position = UDim2.new(0, 0, -0.0502008051, 0)
BG.Size = UDim2.new(1, 0, 1.10040164, 0)
BG.Visible = _G.SmoothForEyes
Some.Name = "Some"
Some.Parent = BG
Some.BackgroundColor3 = Color3.fromRGB(18, 97, 160)
Some.Position = UDim2.new(0.030505348, 0, 0.10531909, 0)
Some.Size = UDim2.new(0, 240, 0, 424)
UICorner.Parent = Some
TextLabel.Parent = Some
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.Position = UDim2.new(0.0833333358, 0, 0.0424528308, 0)
TextLabel.Size = UDim2.new(0, 200, 0, 50)
TextLabel.Font = Enum.Font.GothamBold
TextLabel.Text = "Saving GPU/CPU"
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.TextSize = 22.000
TextLabel.TextWrapped = true
TextLabel_2.Parent = Some
TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_2.BackgroundTransparency = 1.000
TextLabel_2.Position = UDim2.new(0.0833333358, 0, 0.120283008, 0)
TextLabel_2.Size = UDim2.new(0, 200, 0, 59)
TextLabel_2.Font = Enum.Font.Gotham
TextLabel_2.Text = "Scientists state that conserving GPU resources is crucial for optimizing performance and maximizing efficiency in computing systems."
TextLabel_2.TextColor3 = Color3.fromRGB(209, 209, 209)
TextLabel_2.TextScaled = true
TextLabel_2.TextSize = 14.000
TextLabel_2.TextWrapped = true
ImageLabel.Parent = Some
ImageLabel.BackgroundColor3 = Color3.fromRGB(164, 163, 166)
ImageLabel.BackgroundTransparency = 1.000
ImageLabel.Position = UDim2.new(0, 31, 0, 129)
ImageLabel.Size = UDim2.new(0, 178, 0, 178)
ImageLabel.Image = "http://www.roblox.com/asset/?id=2248101918"
ImageLabel.ScaleType = Enum.ScaleType.Crop
TextLabel_3.Parent = Some
TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_3.BackgroundTransparency = 1.000
TextLabel_3.Position = UDim2.new(0.0833333433, 0, 0.778301835, 0)
TextLabel_3.Size = UDim2.new(0, 200, 0, 24)
TextLabel_3.Font = Enum.Font.Unknown
TextLabel_3.Text = "beep boop"
TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel_3.TextSize = 10.000
TextLabel_3.TextWrapped = true
SomeShadow.Name = "SomeShadow"
SomeShadow.Parent = BG
SomeShadow.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
SomeShadow.BackgroundTransparency = 0.250
SomeShadow.Position = UDim2.new(0.0426830649, 0, 0.117689334, 0)
SomeShadow.Size = UDim2.new(0, 240, 0, 424)
SomeShadow.ZIndex = -1
UICorner_2.Parent = SomeShadow
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
function savegpu(fps, vis)
setfpscap(fps)
BG.Visible = vis
RunService:Set3dRenderingEnabled(false)
end
function unsavegpu(vis)
setfpscap(60)
BG.Visible = vis
RunService:Set3dRenderingEnabled(true)
end
local WindowFocusReleasedFunction = function()
if _G.LowFPS and _G.SmoothForEyes then
savegpu(10, true)
elseif _G.LowFPS and not _G.SmoothForEyes then
savegpu(10, false)
elseif not _G.LowFPS and _G.SmoothForEyes then
savegpu(60, true)
elseif not _G.LowFPS and not _G.SmoothForEyes then
savegpu(60, false)
end
return
end
local WindowFocusedFunction = function()
unsavegpu()
return
end
local Initialize = function()
UserInputService.WindowFocusReleased:Connect(WindowFocusReleasedFunction)
UserInputService.WindowFocused:Connect(WindowFocusedFunction)
return
end
Initialize()
while wait() do
if _G.SmoothForEyes then
ImageLabel.Rotation = ImageLabel.Rotation + 5
end
end
--@dontremove
for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do
if v.Name == "sv" then
v:Destroy()
end
end