flicker

Delphi 2010 Control Flickering

99封情书 提交于 2019-12-04 07:06:53
I have been upgrading or migrating our software from XP OS to be able to compile and run under Windows 7. Our software is starting to show issues that we didn't notice under Windows XP. Currently, I am dealing with a user defined control flickering on a TForm. It seems to flicker every now and then not always, but when it flickers it is very noticeable. I have set DoubleBuffered for the TForm and TTrendChart Class, but it is not helping. This a user-defined control of TCustomPanel. It is supposed to display a Live Trendchart on a TForm. TTrendChart = class(TCustomPanel) private fCount:integer;

Non-Flickering Polling in Angular with REST Backend

时光怂恿深爱的人放手 提交于 2019-12-04 05:15:57
I managed getting a constant polling of the backend functional using this answer. But on every timeout the UI is flickering (empty model for a short time). How can I update the model (and the view respectively) after the new data arrived in order to avoid this flickering effect? Here is my current controller (slightly modified from step_11 (Angular.js Tutorial) ): function MyPollingCtrl($scope, $routeParams, $timeout, Model) { (function tick() { $scope.line = Model.get({ modelId : $routeParams.modelId }, function(model) { $timeout(tick, 2000); }); })(); } // edit: I'm using the current stable

Multithreaded video rendering in OpenGL on Mac shows severe flickering issues

你说的曾经没有我的故事 提交于 2019-12-03 20:14:08
I have a video player application, and use multiple threads in order to keep the user interaction still smooth. The thread that decodes the video originally just wrote the resulting frames as BGRA into a RAM buffer, which got uploaded to VRAM by glTexSubImage2D which worked fine enough for normal videos, but -as expected- got slow for HD (esp 1920x1080). In order to improve that I implemented a different kind of pool class which has its own GL context (NSOpenGLContext as I am on Mac), which shares the resources with the main context. Furthermore I changed the code so that it uses

D3DImage and SharpDX flickering on slow hardware

别来无恙 提交于 2019-12-03 16:53:31
I am using the SharpDX.WPF project for the WPF abilities, it seems like an easy to understand low-overhead library, compared to the Toolkit that comes with SharpDX (which has the same issue!) First: I fixed the SharpDX.WPF project for the latest SharpDX using the following: https://stackoverflow.com/a/19791534/442833 Then I made the following hacky adjustment to DXElement.cs, a solution that was also done here : private Query queryForCompletion; public void Render() { if (Renderer == null || IsInDesignMode) return; var test = Renderer as D3D11; if (queryForCompletion == null) {

Flickering in ListView control (OwnerDraw, Virtual)

自古美人都是妖i 提交于 2019-12-03 06:41:56
This question might be considered a follow-up to Flickering in listview with ownerdraw and virtualmode . I've got a ListView control in Virtual mode and I attempt to perform custom drawing. Item rendering is done via the following method override: protected override void OnDrawItem(DrawListViewItemEventArgs eventArgs) As mentioned in the referenced question, custom drawing introduces flickering on mouse over events. Debugger tells me this happens due to an excessive amount of custom draw events which are fired. Now - the accepted answer to the referenced question tells us: This is a bug in

iOS CAKeyFrameAnimation Scaling Flickers at animation end

自古美人都是妖i 提交于 2019-12-03 03:29:12
In another test of Key Frame animation I am combining moving a UIImageView (called theImage ) along a bezier path and scaling larger it as it moves, resulting in a 2x larger image at the end of the path. My initial code to do this has these elements in it to kick off the animation: UIImageView* theImage = .... float scaleFactor = 2.0; .... theImage.center = destination; theImage.transform = CGAffineTransformMakeScale(1.0,1.0); CABasicAnimation *resizeAnimation = [CABasicAnimation animationWithKeyPath:@"bounds.size"]; [resizeAnimation setToValue:[NSValue valueWithCGSize:CGSizeMake(theImage

GLSL/OpenGL shader tessellation flickering and failure

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I just started with OpenGL tessellation and have run into a bit a trouble. I am tessellating series of patches formed by one vertex each. These vertices/patches are structured in a gridlike fashion to later form a terrain generated by Perlin Noise. The problem I have run into is that starting from the second patch, and every 5 th patch after that, sometimes have a lot of tessellation (not the way i configured) but most of the time it doesn't get tessellated at all. Like so: The two white circles mark the highly/over tessellated

Fast Screen Flicker while NOT drawing on Android OpenGL

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wanted to save battery life time. My app only needs to be drawn sometimes. So I added this code to my Renderer in the onDraw method: boolean dirty = true; public void onDrawFrame(GL10 arg0) { if (!dirty) return; dirty = false; ..... draw images .... } So my app only gets drawn when I want it. But what happens is that if I dont draw my app on every frame it flickers really fast. It looks like it will be drawn every 2. frame or so and in all the other frames only a black screen will be drawn. I know that i could set the render mode to

How can I make my form resize more smoothly?

≡放荡痞女 提交于 2019-12-02 18:14:45
When resizing a form with many controls, the form looks bad because of flickering. What are some tips to have a smoother form resizing? A. Vrbic procedure TForm1.WMEnterSizeMove(var Message:TWMMove); begin Self.DisableAlign; end; procedure TForm1.WMExitSizeMove(var Message:TWMMove); begin Self.EnableAlign; end; Try using WM_SETREDRAW ( not LockWindowUpdate ). You might also have a look at DeferWindowPos . Complex forms are often made up of nested panels, and the repaint process may cause flickering. If this is the case with your project there are two easy solutions that might help: Disable the

jQuery FadeIn and FadeOut causes flickering?

两盒软妹~` 提交于 2019-12-02 05:18:52
问题 I originally wrote this question about a jQuery plugin. I since attempted another code using just jQuery: $('#action-alerts .rotate:gt(0)').hide(); setInterval(function(){ $('#action-alerts .rotate:first-child').fadeOut(600) .next('.rotate').delay(600).fadeIn(600) .end().appendTo('#action-alerts');}, 3000); This code still has the flickering issue in iOS. How do I solve this issue? Below is my original question: I am using a jQuery Plugin called Quote Rotator. It works great in the browser,