YouGroove Posted April 6, 2014 Share Posted April 6, 2014 I have simple walls, and i see visible tearing when not moving and rotating camera. I have in App.lua : function App:Loop ... --Refresh the screen self.context:Sync(true) .... Is there another way ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
DudeAwesome Posted April 6, 2014 Share Posted April 6, 2014 you mean some Walls flip dark and then it draws the normal Texture when you turn in fp view? Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
YouGroove Posted April 6, 2014 Author Share Posted April 6, 2014 No, it's screen tearing. I don't know why but print screen can't capture the effect ?? So i reproduced it using Gimp in attached image. Does anyone had that effect ? And hsould not sync function avoid that ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Michael_J Posted April 6, 2014 Share Posted April 6, 2014 The easiest way I know of to avoid screen tear is to enable v-sync edit: My bad--saw that you have v-sync enabled. That SHOULD do the trick... Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
DudeAwesome Posted April 6, 2014 Share Posted April 6, 2014 whats your framerate? @micheal yougroove have set in his startpost sync to true so vsync should be activated. how this function works and if it give us double or trible buffering i dont know, but yougrooves screen looks like normal vsync off artifacts. do you have more context create or some context functions that maybe influence the vsync? Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Josh Posted April 6, 2014 Share Posted April 6, 2014 If you are calling Sync(true) no screen tearing should occur. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
YouGroove Posted April 6, 2014 Author Share Posted April 6, 2014 It is not Lua code i posted above ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted April 6, 2014 Share Posted April 6, 2014 No, your code looks correct, which is why I don't understand how that could happen. Unless your graphics driver has some setting that forces vsync off. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.