Questions tagged [tearing]

An issue with operations on 64 bit value not being atomic on 32 bit machines

On 32 bit machines, only 32 bits are written at a time.

If you are writing a 64 bit value on a 32 bit machine, and writing to the same address at the same time on two different threads, you actually have four writes, not two, because the writes are done 32 bits at a time.

It is therefore possible for the threads to race, and when the smoke clears the variable contains the top 32 bits written by one thread, and the bottom 32 bits written by the other. So you can write 0xDEADBEEF00000000 on one thread and 0x00000000BAADF00D on another, and end up with 0x0000000000000000 in memory.

See this question for a code sample displaying tearing in C#.

39 questions
0
votes
1 answer

Android: tearing effect while calling requestLayout() in OnTouchListener methods? a way to fix?

I've tried adding some Drag&Drop mechanism to my project. the way I'm doing it is basically making two operations each time a touch event occurs: first, updating the parameters I'm using inside onLayout() according to touch event second, calling…
0
votes
2 answers

Tearing and jitter in a simple processing animation

I am new to processing. I wrote the following code with bouncing balls but the animation is not smooth. I have ran the application on various computers and I can occasionally see some jitter or tearing of some balls. I do not believe that it is…
Tarik
  • 10,810
  • 2
  • 26
  • 40
0
votes
1 answer

Avoiding screen tearing in linux + QT

As far as i understand X11 does not support double\triple buffer mechanism to avoid screen tearing. so I tried to use the openGL widgets, then i understood there no support what so ever for openGL+raspberry pi +qt4. All i am asking is a very basic…
Alex
  • 159
  • 1
  • 9
0
votes
1 answer

framebuffer output graphic tearing, FBIO_WAITFORVSYNC and FBIOPAN_DISPLAY failed

the question is about linux framebuffer, the graphic is tearing. recently i work for the output desktop to SDI graphic card, then i catch the idea that using framebuffer. That's ok, it output success, but it has a big problem, the graphic is…
SimpleDrunk
  • 1
  • 1
  • 4
0
votes
1 answer

Picturebox / Panel tearing when drag vb.net

I'm trying to make VB.net program and UI is like normal desktop. I have images in picture boxes as desktop shortcuts. So user can drag them around in form. Btw im not skilled just started to do things like this. I can move picture boxes with mouse…
Corviuse
  • 7
  • 3
0
votes
1 answer

How to fix screen tearing in cocos3d?

When I get the camera closer to some objects in the scene the image tears apart like it's shown below. I'm using OpenglES 2.0 This is a video showing the issue. And this is the test project that reproduce the issue, it's just the cocos3d template…
rraallvv
  • 2,875
  • 6
  • 30
  • 67
0
votes
1 answer

Is there some kind of tear image animation effect for jQuery?

I wonder if there exists some kind of tear apart image animation effect with jQuery today? Not like into one millions pieces, but instead like tearing a picture apart effect at the middle? Moving towards the sides. Or is this something which…
user2097217
  • 419
  • 1
  • 9
  • 17
0
votes
1 answer

Ubuntu Vertical Sync on OpenGL in c++

i've tearing problem in my OpenGL application on Ubuntu, how can i resolve it? (my notebook has an integrated Intel video card)
Luca
  • 1,270
  • 1
  • 18
  • 34
-1
votes
1 answer

Border-Radius Interior Tearing in Certain Browsers

Hoping someone has seen this before. I'm only hearing about this bug from two users and they're both using tablets (I can get specifics, if it matters) for their workstations (I know...). When they view a website, if a button has a border radius,…
1 2
3