Crosshair(Gui Overlay) causes huge fps drop in CS:GO Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Teekanne

Crosshair(Gui Overlay) causes huge fps drop in CS:GO  Topic is solved

23 May 2017, 11:40

Ive tried making a simple Crosshair overlay for CS:GO(mainly to make the AWP Scope less blurry while moving).
Im playing on full-windowed mode so getting an overlay using GUI isnt hard. The problem is,
that any mouseclicks would focus my Crosshair and not the game running under it.

to fix that problem i used the "WinSet, Exstyle, 0x20" command.
for some odd reason this results in a huge fps drop in CS:GO.
im usually playing with 200ish fps but as soon as i open a transparent gui over it i drop down to ~80ish fps.
which should be completly fine but it feels "choppy" like playing at 30ish fps.

ive tried using some other crosshair scripts from the community and i have always one of the 2 stated problems.
either the mouse cant "click through" the crosshair or the game starts "lagging"

Has someone else ever had a problem like this?
Is there any way to make the mouse click through a gui without using

Code: Select all

	WinSet, Exstyle, 0x20, CrossHairX
	WinSet, Transparent, 255, CrossHairX
?

Example Crosshair: (alt-1 to toggle)

Code: Select all

MidX := A_ScreenWidth / 2
MidY := A_ScreenHeight / 2
CrossHairX := A_ScreenWidth / 2 - 10
CrossHairY := A_ScreenHeight / 2 - 10
Crosshair := False

	Gui, CrossHairX: Color, %CrossCol%
	Gui, CrossHairX: +Disabled
	Gui, CrossHairX: -Caption
	Gui, CrossHairX: +ToolWindow
	Gui, CrossHairX: +AlwaysOnTop
	Gui, CrossHairX:Show, x%CrossHairX% y%MidY% w20 h1 NoActivate, CrossHairX
	WinSet, Exstyle, 0x20, CrossHairX
	WinSet, Transparent, 255, CrossHairX
	Gui, CrossHairX:Hide

	Gui, CrossHairY: Color, %CrossCol%
	Gui, CrossHairY: +Disabled
	Gui, CrossHairY: -Caption
	Gui, CrossHairY: +ToolWindow
	Gui, CrossHairY: +AlwaysOnTop
	Gui, CrossHairY:Show, x%MidX% y%CrossHairY% w1 h20 NoActivate, CrossHairY
	WinSet, Exstyle, 0x20, CrossHairY
	WinSet, Transparent, 255, CrossHairY
	Gui, CrossHairY:Hide

Loop
{
	If(Crosshair = False)
		{
		Gui, CrossHairX:Hide
		Gui, CrossHairY:Hide
		While(Crosshair = False)
			{
			sleep 150
			}
		}
	Else
		{
		Gui, CrossHairY:Show, NA
		Gui, CrossHairX:Show, NA
		While(Crosshair = True)
			{
			sleep 150
			}
		}
}
return

!1::
If(Crosshair = False)
	Crosshair := True
Else
	Crosshair := False
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Lamron750 and 74 guests