Questions tagged [hardware-acceleration]

the use of computer hardware to perform some function faster than is possible in software running on the general-purpose CPU

In computing, hardware acceleration is the use of computer hardware to perform some function faster than is possible in software running on the general-purpose CPU. Examples of hardware acceleration include blitting acceleration functionality in graphics processing units (GPUs) and instructions for complex operations in CPUs.

Normally, processors are sequential, and instructions are executed one by one. Various techniques are used to improve performance; hardware acceleration is one of them. The main difference between hardware and software is concurrency, allowing hardware to be much faster than software. Hardware accelerators are designed for computationally intensive software code. Depending upon granularity, hardware acceleration can vary from a small functional unit to a large functional block (like motion estimation in MPEG-2).

The hardware that performs the acceleration, when in a separate unit from the CPU, is referred to as a hardware accelerator, or often more specifically as graphics accelerator or floating-point accelerator, etc. Those terms, however, are older and have been replaced with less descriptive terms like video card or graphics card.

Many hardware accelerators are built on top of field-programmable gate array chips.

Recently, regular expression hardware acceleration has been gaining popularity in the server industry, owing to very noticeable speed ups in spam control.

609 questions
9
votes
0 answers

save hardware accelerated android canvas as bitmap

I am currently drawing directly on the Canvas object provided to my view's onDraw method. This canvas is hardware accelerated. In particular, I can draw multiple circles using RadialGradient shaders with the OVERLAY PorterDuff mode. However, when I…
Daniel Gabriele
  • 281
  • 2
  • 6
9
votes
3 answers

Why does calling setScaleX during pinch zoom gesture cause flicker?

I am trying to create a zoomable container and I am targeting API 14+ In my onScale (i am using the ScaleGestureDetector to detect pinch-zoom) I am doing something like this: public boolean onScale (ScaleGestureDetector detector) { float…
numan salati
  • 19,394
  • 9
  • 63
  • 66
9
votes
3 answers

Java Hardware Acceleration not working with Intel Integrated Graphics

Hi everyone I hope someone can help me solve this problem. I'm having trouble getting hardware acceleration to work on a laptop with Intel Integrated Graphics. The Problem: Hardware Acceleration using Java 7 update 11 doesn't appear to be working…
neptune692
  • 353
  • 1
  • 4
  • 12
8
votes
1 answer

Are 2D transforms hardware accelerated in Mobile Safari?

I've often been told that CSS 3D transforms are hardware accelerated in Mobile Safari which makes me wonder if the implication is that 2D transforms are not? I can think of no reason why they wouldn't be, since they can basically all be implemented…
KaptajnKold
  • 10,638
  • 10
  • 41
  • 56
8
votes
3 answers

WebView inside ViewPager or ScrollView - weird rendering bug on Android 3.0+

I have a ViewPager. Every page of the ViewPager is a ScrollView. The ScrollView contains a WebView and several other Views. On Android 2.3 and older everything works fine but on 3.0+ there's a weird rendering issue: When scrolling left / right in…
8
votes
1 answer

Three.js/WebGL running on integrated GPU instead of dedicated

I'm learning Three.js and created a simple app with it expecting it to run on my dedicated GPU, but task manager shows 0% GPU utilization (all values) while the scene is rendering and 80-90% integrated graphics usage. I tried a few sites that use…
Cassiterite
  • 217
  • 3
  • 6
8
votes
1 answer

How to verify that Android SDK emulator is running in Hyper-V

I am developing an app for android using Xamarin. I am using Visual Studio 2017 and the Android SDK emulator that came with the Xamarin package from the visual studio installer. The emulator is very slow. I followed the instructions in this article…
8
votes
2 answers

Disable Adobe Flash Player hardware acceleration in the embed code or AS

We run surf camera streams on our website, which are played via the latest version (5.4) of JWPlayer on our pages. Recently we switched over to another streaming service, and H.264 streams, as we are planning on streaming out to iOS devices in the…
Matthew Savage
  • 3,794
  • 10
  • 43
  • 53
8
votes
1 answer

Verify that VP8 HW encoding/decoding is really working on Linux

I have the "Beebox" from "ASRock". The processor of this machine is an Intel Celeron N3150 which supports hardware encoding and decoding of VP8 video streams. I would like to use this feature in Google Chrome (on Debian Linux) for making WebRTC…
Bernd
  • 675
  • 2
  • 8
  • 30
8
votes
0 answers

Can we hardware accelerate an off-screen canvas?

I'm creating an off-screen bitmap+canvas, drawing a bunch of smaller bitmaps into it, then drawing it into a view. The isHardwareAccelerated() method returns false for my canvas: mBitmap = new Bitmap(500, 500, Bitmap.Config.RGB_565); mCanvas = new…
user291701
  • 38,411
  • 72
  • 187
  • 285
8
votes
2 answers

Using Hardware Layer in Custom View onDraw

So I'm trying to understand how I can properly use hardware acceleration (when available) in a custom View that is persistently animating. This is the basic premise of my onDraw(): canvas.drawColor(mBackgroundColor); for (Layer layer : mLayers) { …
Kevin Coppock
  • 133,643
  • 45
  • 263
  • 274
8
votes
1 answer

UnsupportedOperationException in GLES20Canvas.clipPath with hardware acceleration disabled on view

I have hardware acceleration enabled in my app but I have disabled it for one of my views because I had problems with stroke caps and other things. Now I'm getting this stack trace in the Google Play Crash Errors…
devconsole
  • 7,875
  • 1
  • 34
  • 42
7
votes
3 answers

Is there a way to use application that use hardware accelerated OpenGL on a headless machine?

There exist a class of applications that use opengl to provide hardware acceleration, but are not GUI based. However it seems that in the default case, to use opengl, there must be running an X-server with GLX (on the same virtual terminal) for…
Catskul
  • 17,916
  • 15
  • 84
  • 113
7
votes
1 answer

What buffering strategy should I use for my 2D scrolling map?

So, I'm creating a 2d top-down game in Java. I'm following instructions from Java 2D: Hardware Accelerating - Part 2 - Buffer Strategies to take advantage of hardware acceleration. Basically, what I'm thinking is this: I'd like to be able to easily…
7
votes
2 answers

How to properly use a hardware accelerated Media Foundation Source Reader to decode a video?

I'm in the process of writing a hardware accelerated h264 decoder using Media Foundation's Source Reader, but have encountered a problem. I followed this tutorial and supported myself with Windows SDK Media Foundation samples. My app seems to work…
Vennor
  • 596
  • 6
  • 13