Go to advanced search

by olso4539
Sun Sep 07, 2014 4:03 am
Forum: OpenVG
Topic: VG_OUT_OF_MEMORY_ERROR
Replies: 2
Views: 1656

Re: VG_OUT_OF_MEMORY_ERROR

I have done a few things that seem to have lessened the problem. I replaced repeated calls to vgAppendPathData and vgClearPath with one call to vgAppendPathData and repeated calls to vgModifyPathCoords. I also removed calls to vgCreatePaint and vgDestroyPaint and any other code that repeatedly creat...
by olso4539
Wed Sep 03, 2014 4:34 am
Forum: OpenVG
Topic: Drawing OpenVG on an X Window
Replies: 2
Views: 2734

Re: Drawing OpenVG on an X Window

I would take a look through this repository for an example. https://github.com/ricrpi/mupen64plus-rpi
It is a nintendo 64 emulator that draws opengles in an x window through egl. You should be able to swap opengles for openVG pretty easily if you can understand the rest of the x window code.
by olso4539
Wed Sep 03, 2014 4:16 am
Forum: OpenVG
Topic: VG_OUT_OF_MEMORY_ERROR
Replies: 2
Views: 1656

VG_OUT_OF_MEMORY_ERROR

I keep receiving VG_OUT_OF_MEMORY_ERROR errors in my application. I'm using OpenVG through egl dispmanx windows from the console. I'm trying to create a scrolling effect by drawing paths (data series) in a narrow band on the right, updating the window buffer, copying the window contents to the left ...
by olso4539
Fri Aug 15, 2014 2:48 pm
Forum: General discussion
Topic: Weston Client
Replies: 10
Views: 3518

Re: Weston Client

Well, that quote should be "Maynard doesn't directly use EGL". It's still used in the backbone of weston. Take a look at rpi-renderer.c in the repository. Maynard appears to use something called Cairo for graphics (through the GTK toolkit). It doesn't seem that Cairo is hardware accelerated (unless ...
by olso4539
Thu Aug 14, 2014 11:12 pm
Forum: General discussion
Topic: Weston Client
Replies: 10
Views: 3518

Re: Weston Client

Is not Maynard built on Wayland / Weston ? http://www.raspberrypi.org/preview-the-upcoming-maynard-desktop https://github.com/raspberrypi/maynard/wiki Maynard is in fact. I hadn't thought to look into Maynard because it seemed so different from an application, and I also don't fully understand the ...
by olso4539
Thu Aug 14, 2014 8:53 pm
Forum: General discussion
Topic: Weston Client
Replies: 10
Views: 3518

Weston Client

Hello all, Can anyone point to a wayland/weston client using EGL that compiles on the pi? I'm hoping that this topic can become a good reference for anyone trying to compile/develop their own weston client on the pi. There are instructions for compiling weston, including the clients at http://waylan...
by olso4539
Tue Aug 12, 2014 10:46 pm
Forum: Raspbian
Topic: Mesa, OpenGL, and OpenGL ES
Replies: 7
Views: 4320

Re: Mesa, OpenGL, and OpenGL ES

Nope, OpenGL ES and OpenVG are hardware accelerated.
by olso4539
Fri Aug 08, 2014 9:18 pm
Forum: General discussion
Topic: Getting started with maynard and web browser
Replies: 10
Views: 2231

Re: Getting started with maynard and web browser

I had not tried to do a dist-upgrade. I figured it wouldn't be needed with a fresh install. Same behavior after the dist-upgrade. The epiphany browser runs just fine on x as well. I am aware it is a work in progress. I was just wondering if it was everyone's experience, since i think i've seen scree...
by olso4539
Fri Aug 08, 2014 8:38 pm
Forum: General discussion
Topic: Getting started with maynard and web browser
Replies: 10
Views: 2231

Re: Getting started with maynard and web browser

The epiphany browser does not appear to be working on maynard. When opened, there are two separate surfaces that appear (presumably dispmanx elements that aren't lined up/set up right?). One surface has the typical window outline, close window button, url bar etc. The other surface is white. Moving ...
by olso4539
Fri Jul 25, 2014 6:36 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 53175

Re: Example program to draw random shapes using the C compil

Just finished quite a bit of fiddling. Got a ~10% gain from removing the red/green/blue/alpha size = 8 settings from the attribute_list for eglChooseConfig, and another ~15% by caching and re-using the VGPaths and VGPaints (also need to clear the VGPaths) instead of repeatedly creating and destroyi...
by olso4539
Fri Jul 25, 2014 1:52 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

I've updated the git repository to include three fonts and text rendering. It's a basic implementation, but it works. I would like to redo the implementation to allow the full list of installed fonts, but that is a ways off because i need to create/find a TrueType to openvg font converter. I would b...
by olso4539
Thu Jul 03, 2014 7:43 pm
Forum: OpenVG
Topic: OpenVG bug?
Replies: 2
Views: 9342

Re: OpenVG bug?

It seems like this is only a problem with the vguPolygon() function as vgAppendPathData can handle tens of thousands of entries in one call and is a nice alternative.
by olso4539
Thu Jul 03, 2014 7:27 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

After failing to figure out the bug with vguPolygon I found a lower level function called vgAppendPathData to plot the data with. Using this method i was able to fix the bug, and increase the plotting speed. Plus it's just more direct to use. I'm now up to ~536k plot points per second. That's pretty...
by olso4539
Wed Jul 02, 2014 9:18 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

PiGraham, I'm just starting to look into what is using most of the time. I'm still sitting at a low cpu load, so it's probably still gpu or communication to the gpu limited. I had the same thought about drawing the new polygons and shifting the old ones, but i haven't gotten there yet in programming...
by olso4539
Wed Jul 02, 2014 8:49 pm
Forum: OpenVG
Topic: OpenVG bug?
Replies: 2
Views: 9342

OpenVG bug?

I found a possible bug in the raspberry pi openVG implementation. I'm using vguPolygon() to draw plot lines. When I exceed 500 points on a single vguPolygon call, the behavior becomes unpredictable. At first extraneous lines appear, as the number of points increases not all of the points are plotted...
by olso4539
Wed Jul 02, 2014 2:19 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

I've just realized that dynamic overclocking only kicks in under high cpu load and not high gpu load. On my pi this program is running around 25% cpu and the default arm and core speeds. It would be nice to kick up the gpu from 250Mhz to 500Mhz without force turbo and setting the warranty bit.
by olso4539
Tue Jul 01, 2014 2:57 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

PiGraham, Thank you! Before i was appending each segment to a path, then drawing the path for each frame with vgDrawPath. Once you mentioned it I took another look at the available library functions and found vguPolygon() which can be used to load an array of points into a path instead of loading a ...
by olso4539
Tue Jul 01, 2014 12:37 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

I was experimenting with the code, and it turns out most of the time is spent on vguLine(). It seems odd that i can only get 7300 lines per second with 1000 Mhz Arm and 500 Mhz core. That's 137,000 arm instructions or 68,500 core instructions per line drawn. I'm looking into the released Broadcom dr...
by olso4539
Mon Jun 30, 2014 5:11 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

Joan, Monitoring voltage data from an add on ADC board. Mostly strain gauge based transducers for force and pressure, but also thermocouples and thermistors for temperature. If written generically it could be used with any spi data. It's mostly inspired by the KST plotting program, which is fantasti...
by olso4539
Mon Jun 30, 2014 5:02 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

Re: High Speed Data Monitor

I have the data monitor partially implemented plotting rand() generated data. I still need to figure out OpenVG fonts to add axis labels. I have 8 channels, 1720 data points per plot updating at nearly one frame every two seconds. It's ~7300 lines per second with turbo. It uses about 25% cpu, and i ...
by olso4539
Mon Jun 30, 2014 5:01 pm
Forum: Graphics programming
Topic: High Speed Data Monitor
Replies: 13
Views: 5291

High Speed Data Monitor

Hi all, I am starting to create a high speed data monitor in two parts. An spi kernel driver -Pulls data into a ring buffer -Logs data to sd card on trigger -Uses DMA to minimize cpu usage? -Interrupts/triggers dma on MOSI low -Uses 8 chip selects, might be tricky but possible to use dma to incremen...
by olso4539
Thu Jun 19, 2014 10:16 pm
Forum: Automation, sensing and robotics
Topic: Reading Analogue values and displaying in Realtime using KST
Replies: 4
Views: 3263

Re: Reading Analogue values and displaying in Realtime using

Launching kst was a huge frustration for me, as man kst returns results. The actual command to launch kst is kst2, for kst version 2.
by olso4539
Wed Jun 04, 2014 3:27 am
Forum: Gaming
Topic: Mupen64Plus - N64 Emulator for the Pi
Replies: 204
Views: 104347

Re: Mupen64Plus - N64 Emulator for the Pi

Is it normal that the gles2n64 video plugin makes the screen flicker (estimate varying from 5 to 20 hz) for all games? It seems like it flickers least under heavy load. I have been using the rice plugin but it won't open Mega Man 64. I'm using the Mupen64plus branch with the recently posted build in...
by olso4539
Tue Jun 03, 2014 3:20 pm
Forum: Beginners
Topic: What's the max speed for the SD slot?
Replies: 13
Views: 23779

Re: What's the max speed for the SD slot?

From this post http://www.raspberrypi.org/forums/viewtopic.php?p=61730#p61730 It looks like the 1.8V has to be fed into the BCM2835 from an external regulator to the correct bank to be available for the emmc module signaling. That bank may also control the voltage for other peripherals/pins? It also...
by olso4539
Mon Jun 02, 2014 6:49 pm
Forum: Beginners
Topic: What's the max speed for the SD slot?
Replies: 13
Views: 23779

Re: What's the max speed for the SD slot?

The controller should be able to go faster in theory (with UHS-I cards), but the electrical specifications of the Pi are not compatible to UHS-I - 3.3V signaling only. So it won't get any faster than about 22 MB/s in practice. As dom already said, it's much more important that the SD card is reason...

Go to advanced search