Go to advanced search

by Brian Beuken
Mon Apr 16, 2018 1:40 pm
Forum: OpenGLES
Topic: function to return available GPU memory?
Replies: 2
Views: 416

Re: function to return available GPU memory?

Thanks I only really need it at start up to set up the current amounts, I can calculate the remainders with reach allocation
by Brian Beuken
Sat Apr 14, 2018 6:03 pm
Forum: OpenGLES
Topic: function to return available GPU memory?
Replies: 2
Views: 416

function to return available GPU memory?

Aside from the obvious idea of keeping track of all memory you allocate, that won't really help if you don't know the size of the memory allocated to the GPU in preferences.


Is there a simple way to find out how much GPU memory has been allocated, and how much is still free?
by Brian Beuken
Fri Mar 16, 2018 3:57 pm
Forum: Troubleshooting
Topic: New Raspbian Jessie Stretch 2018-03-13 Power issues?
Replies: 11
Views: 677

Re: New Raspbian Jessie Stretch 2018-03-13 Power issues?

well ok, thanks for that info, its most....helpful


Point is that the new version of Rasbian is apparently putting some extra load on the 3B's lets see if that can be located
by Brian Beuken
Fri Mar 16, 2018 3:47 pm
Forum: Troubleshooting
Topic: New Raspbian Jessie Stretch 2018-03-13 Power issues?
Replies: 11
Views: 677

Re: New Raspbian Jessie Stretch 2018-03-13 Power issues?

which is why I referred to it as the new Jessie, the thread header does make it clear I'm using Jessie Stretch 2018-03-13
by Brian Beuken
Fri Mar 16, 2018 3:07 pm
Forum: Troubleshooting
Topic: New Raspbian Jessie Stretch 2018-03-13 Power issues?
Replies: 11
Views: 677

Re: New Raspbian Jessie Stretch 2018-03-13 Power issues?

probably connected, my Pi3B is also showing an overheat icon a few times, which is unusual with the apps I am testing.

Maybe there's a few extra processes running on the new Jessie?
by Brian Beuken
Fri Mar 16, 2018 10:19 am
Forum: Troubleshooting
Topic: New Raspbian Jessie Stretch 2018-03-13 Power issues?
Replies: 11
Views: 677

New Raspbian Jessie Stretch 2018-03-13 Power issues?

I updated my standard Pi 3B to the new version of Rasbian the day it came out and have noticed that my 3B is now drawing a lot more power from the USB cable via my monitor, is basically showing the lack of current icon most of the time. It was quite happy using that USB power before the update. If c...
by Brian Beuken
Wed Mar 14, 2018 11:07 am
Forum: General discussion
Topic: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE
Replies: 376
Views: 32591

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Nice to see an upgrade, of course I was hoping for that new Octocore 2.0ghz, 16Core GPU with OpenGLES3.2 Raspberry 4, but that's next year...right? Right??? As a + upgrade it is nice to see an overall boost in performance, I would have like to have seen the GPU with an extra core or 2 though maybe f...
by Brian Beuken
Sun Feb 25, 2018 2:24 pm
Forum: Graphics programming
Topic: Which OpenGL
Replies: 3
Views: 818

Re: Which OpenGL

The Pi's Broadcom IV GPU is itself a native OpenGLES2.0 system, and it is a fine programmable pipeline API though only a 1st gen version with GLSL1.0 and vertex and fragment shaders. Further more its only a dual core GPU so while it can do a lot, it can't always do it fast. Though the Pi does curren...
by Brian Beuken
Sat Feb 03, 2018 3:20 pm
Forum: General discussion
Topic: shameless book plug that only appeals to strange coder types
Replies: 0
Views: 175

shameless book plug that only appeals to strange coder types

I hope this is ok to post here, it is very much about coding Raspberry's My book about programming games on SBC's is due out next month, its aimed at all SBC's with graphic capabilities but mainly at Raspberry Pi owners who want to learn to write games in C/C++ In preparation for that I'm getting my...
by Brian Beuken
Wed Jan 10, 2018 11:26 am
Forum: The MagPi
Topic: STICKY: Errata
Replies: 50
Views: 22620

Re: STICKY: Errata

Sorry folks a few errors in my article, in Issue 65, Coding in C++ to install code::blocks use sudo apt-get install codeblocks not as listed sudo apt-get codeblocks on the paragraph headed Starting with C++, the file you need to create (the last reference is Game.h ) should actually be SimpleObj.h
by Brian Beuken
Wed Jan 10, 2018 11:25 am
Forum: The MagPi
Topic: Issue 65 Coding c++ errors
Replies: 2
Views: 944

Re: Issue 65 Coding c++ errors

sure
by Brian Beuken
Wed Jan 10, 2018 9:24 am
Forum: The MagPi
Topic: Issue 65 Coding c++ errors
Replies: 2
Views: 944

Issue 65 Coding c++ errors

Sorry folks a few errors in my article,

to install code::blocks use

sudo apt-get install codeblocks not as listed sudo apt-get codeblocks


on the paragraph headed Starting with C++, the file you need to create (the last reference is Game.h) should actually be SimpleObj.h
by Brian Beuken
Thu Sep 28, 2017 2:26 am
Forum: C/C++
Topic: First c program write in raspberry pi.
Replies: 55
Views: 41415

Re: First c program write in raspberry pi.

You could try using a Windows PC and Visual Studio 2017, it has options now to build on a Pi, you simply have to connect them via a network cable. That would take care of most of your directory issues and allow you to focus on writing code rather than the arcane magic of GCC. Even better is to use V...
by Brian Beuken
Tue Sep 05, 2017 8:37 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Re: Porting Raspberry to Linux keys don't work

dwelch67 wrote:
Tue Sep 05, 2017 5:58 pm
this is a bare metal forum.
fair point, I apologise for posting in the wrong area, I'm sure a mod can move it. I assumed key access was a bit more hardcore than it is.
by Brian Beuken
Tue Sep 05, 2017 6:00 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Re: Porting Raspberry to Linux keys don't work

Im away from the machine at the moment but will check that out, I'm tryiing to see if I can get the executable to run from visual studio as a sudo applicaiton which should then allow it to access the files and not force me to chmod the access Odd that Rasbian does not have the key event files restri...
by Brian Beuken
Tue Sep 05, 2017 4:00 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Re: Porting Raspberry to Linux keys don't work

I fixed it, thanks topguy for the suggestion to look at the errno, it returned permission denied which lead me to realise that indeed the files were restricted.. I used chmod to alter the access permisision of the event files. Apparently not a good thing to do under Linux, but I don't know how to ov...
by Brian Beuken
Tue Sep 05, 2017 3:44 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Re: Porting Raspberry to Linux keys don't work

errno is 13, permission denied....hmmmm curious
by Brian Beuken
Tue Sep 05, 2017 3:28 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Re: Porting Raspberry to Linux keys don't work

Well its going strait to the keys so thought it might be more bare metal, but if an admin can move it?
by Brian Beuken
Tue Sep 05, 2017 2:29 pm
Forum: Advanced users
Topic: Porting Raspberry to Linux keys don't work
Replies: 9
Views: 880

Porting Raspberry to Linux keys don't work

As I've noted a few times on other posts I'm not a linux fan, and struggle with it at times, when things don't work as expected but google usually helps, however I have a small but deadly tech issue I can't seem to locate an answer to.. On Rasbian I set up a posix thread to handle my keys, and it wo...
by Brian Beuken
Tue Jul 04, 2017 9:08 am
Forum: C/C++
Topic: Problems with glm 0.9.8.4
Replies: 2
Views: 427

Re: Problems with glm 0.9.8.4

I'm using std=C++11 which is really what I need to be using (probably should even use a newer version but I'm kinda happy with 11) You are right though, the issue is glm's use of #define countof in its setup.hpp file (line 806) an effort to resolve some kind of backward compatibility. The BC_host.h ...
by Brian Beuken
Mon Jul 03, 2017 12:04 am
Forum: C/C++
Topic: Problems with glm 0.9.8.4
Replies: 2
Views: 427

Problems with glm 0.9.8.4

I wonder if anyone else had has an issue like this. I've been using glm as my maths lib for quite some time. today I noticed it was missing a function I wanted to use, and it transpired I had an older version of glm. So I upgraded, and all hell broke loose. It would seem that glm defines its own ver...
by Brian Beuken
Tue Mar 14, 2017 10:35 am
Forum: Staffroom, classroom and projects
Topic: RPi as home computer for learning programming
Replies: 17
Views: 5416

Re: RPi as home computer for learning programming

Not sure if this will be of massive interest, but I'm just finishing a book, its going by the rather wordy title of FUNDAMENTALS OF C/C++GAME DEVELOPMENT (Using Target-based Development on SBC’s) Its primary target is Raspberry Pi users, though other systems are supported as the principles are all t...
by Brian Beuken
Fri Mar 10, 2017 8:55 pm
Forum: Graphics programming
Topic: 60hz lock on GPU?
Replies: 8
Views: 1675

Re: 60hz lock on GPU?

Doh....... of course

thank you, that does indeed remove the 60fps lock.
by Brian Beuken
Fri Mar 10, 2017 5:20 pm
Forum: Graphics programming
Topic: 60hz lock on GPU?
Replies: 8
Views: 1675

Re: 60hz lock on GPU?

not at the moment, its part of a book project, when its published it will be released, but really its not very hard the crux of it is based on objects which have different draw functions, here's one for an OBJ based ship model bool ShipModel::Draw() { // Use the program object glUseProgram(this->pro...
by Brian Beuken
Fri Mar 10, 2017 4:32 pm
Forum: Graphics programming
Topic: 60hz lock on GPU?
Replies: 8
Views: 1675

Re: 60hz lock on GPU?

Hi I'm a bit confused by something, no matter how many poly's I sent to the GPU, it reports a maximum of 60FPS, so I assume there is some kind of lock in place? Is there any way to turn that off, and get higher frame rates? thanks in advance Brian I think it is locked by default to the HDMI framera...

Go to advanced search