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
171
votes
20 answers

Android Studio/Emulator on macOS with ARM CPU M1

I started Android Studio 4.1 in macOS Big Sure 11.0.1 with new ARM cpu M1 After installing Rosetta: Yes, it builds ! But the Emulator has problems, it shows me CPU does not support VT-x Even ARM images have this issue I used the most recent, a very…
77
votes
2 answers

Is it possible to use GPU acceleration on compiling multiple programs on a gcc compiler?

Is there any way or tool to apply GPU acceleration on compiling programs with GCC compiler? Right now I have created a program to compile the given list of programs iteratively. It takes a few minutes. I know of a few programs like Pyrit which helps…
clu3Less
  • 1,812
  • 3
  • 17
  • 20
51
votes
1 answer

How to use hardware acceleration with ffmpeg

I need to have ffmpeg decode my video(e.g. h264) using hardware acceleration. I'm using the usual way of decoding frames: read packet -> decode frame. And I'd like to have ffmpeg speed up decoding. So I've built it with --enable-vaapi and…
ixSci
  • 13,100
  • 5
  • 45
  • 79
47
votes
7 answers

WebView "flashing" with white background if hardware acceleration is enabled (Android 3.0+)

I have an issue with the WebView (Android 3.0+), which the WebView always displays a white background before display my black background ("flashing"). Here is my simple test code: @Override public void onCreate(Bundle savedInstanceState) { …
47
votes
4 answers

HW accelerated activity - how to get OpenGL texture size limit?

I'm trying to enable hw acceleration in Honeycomb, and display some Bitmaps on Canvas. All works fine, but for large bitmaps (>2048 in one dimension), I get error in log: OpenGLRenderer: Bitmap too large to be uploaded into a texture I know this is…
Pointer Null
  • 39,597
  • 13
  • 90
  • 111
46
votes
2 answers

Android Hardware Acceleration - to use or not to use?

I'm developing an app that it functionality very similar to Facebook Android native app: social network that most of the time the user will spend in an endless ListView displaying lot's of images, entering an image gallery, and so on. let's say for…
Tal Kanel
  • 10,475
  • 10
  • 60
  • 98
41
votes
3 answers

Android WebView Hardware Acceleration Artefact Workarounds

So there's a known bug with WebView hardware acceleration in Android, see here for example: https://code.google.com/p/android/issues/detail?id=17352 Disabling hardware acceleration is not an option for me. I've read these great references: Android…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
35
votes
1 answer

Punch a hole in a rectangle overlay with HW acceleration enabled on View

I have a view which does some basic drawing. After this I want to draw a rectangle with a hole punched in so that only a region of the previous drawing is visible. And I'd like to do this with hardware acceleration enabled for my view for best…
Joseph Earl
  • 23,351
  • 11
  • 76
  • 89
35
votes
3 answers

How to use hardware accelerated video decoding on Android?

I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright (overview…
Glenn Yu
  • 613
  • 1
  • 7
  • 11
33
votes
1 answer

Test if Hardware Acceleration has been enabled for a CSS animation?

How can I tell (for testing purposes) if Hardware Acceleration has been enabled for a CSS animation? I have the following code which essentially enlarges an element and makes it fullscreen (without using the HTML5 fullscreen API). It runs like a…
Chris Spittles
  • 15,023
  • 10
  • 61
  • 85
30
votes
5 answers

Which OpenGL functions are not GPU-accelerated?

I was shocked when I read this (from the OpenGL wiki): glTranslate, glRotate, glScale Are these hardware accelerated? No, there are no known GPUs that execute this. The driver computes the matrix on the CPU and uploads it to the GPU. All the…
Xavier Ho
  • 17,011
  • 9
  • 48
  • 52
25
votes
2 answers

Work around Canvas.clipPath() that is not supported in android any more

From android 3.0 the clipPath() method is no longer supported in devices with hardware acceleration turned on.(Read this article for more details). I am working with canvas and I need to draw rounded image. Any ideas about how can I do that? *I…
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
25
votes
1 answer

WebGL VS Canvas 2D hardware acceleration

These days, I need to draw many images on a canvas. The canvas size is 800x600px, and I have many images of 256x256px(some is smaller) to draw on it, these small images will compose a complete image on the canvas. I have two ways to implement this.…
LiuGui
  • 330
  • 1
  • 3
  • 9
24
votes
2 answers

Setting android:hardwareAccelerated="true" in or in

I want my app, which relies heavily on GPU, to use hardware acceleration. On some forums I've been suggested to set android:hardwareAccelerated="true" inside and on other forums same attribute inside inside my…
Sergey Emeliyanov
  • 5,158
  • 6
  • 29
  • 52
23
votes
3 answers

Font size too large to fit in cache

So i recently switched to android 3.0 (honeycomb) and i'm having some issues with hardware rendering, specifically at a certain custom view i've written where I use a font size of 200 to display some text. Unfortunately it seems the openGLRenderer…
MrJre
  • 7,082
  • 7
  • 53
  • 66
1
2 3
40 41