acceleration

Javascript iPhone Scroll Effect in an iFrame / Javascript Mouse Acceleration

Hey Stackoverflow, I'm trying to recreate the iPhone flick / scroll event in a window using JavaScript. Starting with JQuery, I'm measuring the mouse's acceleration and offset during click - drag - release events using a timer: var MouseY = { init: function(context) { var self = this; self._context = context || wi...

How to calculate deceleration needed to reach a certain speed over a certain distance?

I've tried the typical physics equations for this but none of them really work because the equations deal with constant acceleration and mine will need to change to work correctly. Basically I have a car that can be going at a large range of speeds and needs to slow down and stop over a given distance and time as it reaches the end of it...

Working with Accelerometer

I am working on gestures using acceleration values (x, y, z) from a device. If I hold the device in my hand in a resting position (x,y,z) = ((0,0,0)). But if I change the direction of device (still at resting position) the values are changed to something like ((766,766,821)). As all the x, y, z axis are changed compared to their origina...

How to Detect Hardware Acceleration

Is there a Win32 API call that detects the current Hardware Acceleration level of a user's system? I have no need to change the setting, but I'd like to scale back the level of detail for my OpenGL display if hardware acceleration is disabled. ...

Javafx 2d text rendering speed up

Hello Guys, I am a little surprised that JavaFX do consume my CPU by showing simple floating text on a screen. My question is there any option tweaks to turn on hardware acceleration for nodes like Text? To Use GPU and not CPU when rendering 2D primitives? Here is the simple example that consume up to 40% cpu on my 2.53Mhz core 2 duo...

Make virtual network interface in Linux?

I'm building a program that does network acceleration, and I need to know how to create a network interface on Linux that instead of directing data to an actual interface, directs information to my program, so that it can be accelerated. The idea is to make it a transparent system, so that programs just have to use the interface like a n...

GMA500 (US15W) problem

Hello, I'm running a WPF test application on Windows XP Embedded with directx9 intalled (and all tests running in dxdiag). The graphics cards is a GMA500 (directx 9.0c) which has capabilities to support rendering tier 2, but I can only get level 1. BTW, I'm using IEGD 10.1 drivers with full video playback acceleration (H.264). Any idea...

Stop deceleration of UIScrollView

What's the best way to immediately stop the deceleration of an UIScrollView in iPhone 3.0? I would like to keep the deceleration of the UIScrollView until it naturally stops or the user performs a certain action, whatever happens first. Thanks! ...

animation starts when tilting

i like to start this animation when tilting. it doesn't, so i suppose some essential code is missing. please help: - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { flap.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed: @"ronnie1.png"], [UIImage imageName...

Javascript acceleration?

Is there any way to speed up JS scripts (i mean some complex DOM manipulations, like games or animations)? ...

Good acceleration structure for ray sphere tests with spheres that move

Hi! I'm looking for the proper acceleration structure to do ray-sphere intersection tests (in a game). the following conditions apply: -there are arround 100 spheres and 100 rays to test against each other per frame -the spheres move in each frame, so do the rays -there can be rays/spheres added/removed in each frame (but most of the...

How do I incorporate speed and/or acceleration into a (WPF) scrollviewer?

I have a WPF scrollViewer that I use for panning (MouseDown, MouseMove, MouseUp) and I would like to include an acceleration effect that incorporates inertia. So, if the mouse moves beyond a threshold speed and I release the mouse, it continues to pan but slows down as a function of the initial speed. Any ideas, thoughts or examples? ...

Cuda GPU optimization

i have read that there were 100X acceleration on certain problems when you use NVIDIA GPU instead of CPU. what are the best performance acceleration timings using cuda on different problems. please state the problem and the acceleration factor along with links for papers if possible. ...

How to accelerate the FLV video in RTMP?

I've been stucked with this requirement for a long time.And how can I do that?Any suggestions would be appreciated! ...

Java2D OpenGL Hardware Acceleration Doesn't Work

It doesn't work with OpenGL with even the simplest of programs. Here is what I am doing.. java -Dsun.java2d.opengl=True -jar Java2Demo.jar (Java2Demo.jar is usually included with the JDK..) The text output is: OpenGL pipeline enabled for default config on screen 0 When I don't pass in the above VM argument things work fine (but...

Which is the fastest way to retrive all items in SQLite?

I am programming on windows, I store my infors into sqlite. However I find to get all items is a bit slow. I am using the following way: select * from XXX; retriving all items in 1.7MB SQLite DB takes about 200-400ms. It is too slow. Can Anyone Help! Many Thanks! Thanks for your answers! I have to do a complex operation on the data,...

Java 6 Hardware Acceleration on Mac OS X

I have a java application I wrote that loads up a TTF font and uses the drawString method from Graphics2D. This gets called every 50ms with the x and y positions changing each time to make the text move. When I run the program on Windows, I get 0-1% CPU usage, but on Mac I get about 75% usage. This Windows machine does have a better CPU ...

How to detect mouse acceleration in javascript?

Hi all, I'm logging the mouse movements in a web app. I'd like to detect the mouse acceleration on a platform (e.g. Windows). Is it possible to do it from javascript, even just in an approximated way? I could ask the user to check their settings with a questionnaire, but it would be much better to detect it automatically. Cheers ...

How to get horizontal acceleration in Android?

I'm trying to translate the accelerometer values from the device coordinates to the world coordinates. It's not clear how to do this. I guess getRotationMatrix method can do sth about this,and I use the matrix R the method generated multiply accelerometer values but I did not get what I expected. Here is my code: public void onSensorCh...