LineOfSight flickering

Bugman

Active member
Joined
Aug 14, 2014
Messages
68
Reaction score
0
Hello Guys

i have a problem with the IsLineOfSightClear function from s0beit

Code:
bool CWorldSA::IsLineOfSightClear ( CVector * vecStart, CVector * vecEnd, bool bCheckBuildings, bool bCheckVehicles, bool bCheckPeds, bool bCheckObjects, bool bCheckDummies, bool bSeeThroughStuff, bool bIgnoreSomeObjectsForCamera )


if im calling the function too fast, the screen is "flickering"
and if the timer is called every  150 - 200ms, all is good ;)

did anyone know about that, and know a good fix/other functions ?
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
176
Timer? Show some code. There's no reason for it "flashing" your game.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Calling it from another thread or outside the game rendering loop.
 
Top