It is currently Thu May 25, 2017 5:38 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Option Material acceleration of the compiler
Unread postPosted: Sat Feb 18, 2017 11:57 am 
Offline

Joined: Sat Feb 11, 2017 1:40 am
Posts: 68
Location: France
Please explain somebody what exactly is the material acceleration. What for use should it be activated?


Top
 Profile  
 
 Post subject: Re: Option Material acceleration of the compiler
Unread postPosted: Sat Feb 18, 2017 12:54 pm 
Offline
User avatar

Joined: Mon Aug 18, 2014 1:16 pm
Posts: 1336
Hi Sprougnaf

Are you talking about Graphic Acceleration. If so then if you enable graphics accelerated you app may run a little faster but there can be problems. Maybe as well to leave it disabled.

Roy


Top
 Profile  
 
 Post subject: Re: Option Material acceleration of the compiler
Unread postPosted: Sat Feb 18, 2017 9:15 pm 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1135
Location: From Blighty
The concept of this, the pros and cons of graphic acceleration and hardware acceleration I've been pondering for a while.

This is what I understand:-

• The GPU on your device or your user device needs to support Hardware Acceleration.

• A repetitive graphic task is allocated to some section of RAM by the CPU and this is put in some sort of "buffer" for more instantaneous rendering. <-- Warning: this could be very bad computer science :)

What I don't know is:-

• How this works via an interpreter based program such as BASIC!.

• I assume there might be a "lunge" on the screen as the interpreter catches up?

You can try this example for yourself...

Code:
GR.OPEN 255, 0, 0, 0, 0, 0

% Scale your device
rW = 1280
rH = 800

GR.SCREEN dW, dH

sW = dW / rW
sH = dH / rH

GR.SCALE sW, sH

w = rW
h = rH
s = 20

GR.COLOR 255, 255, 255, 255, 1
GR.CIRCLE ball, x, y, s

% Up, Down, Left and Right constants
u = 1
d = 0
l = 1
r = 0

% MAIN
DO

  IF dY = u THEN y = y - s
  IF dY = d THEN y = y + s
  IF dX = l THEN x = x - s
  IF dX = r THEN x = x + s

  IF x = 0 THEN dX = r
  IF x = w - s THEN dX = l
  IF y = 0 then dY = d
  IF y = h - s THEN dY = u

  GR.MODIFY ball, "x", x, "y", y

  GR.RENDER

UNTIL 0


...You can test first in BASIC! without compiling an APK, with Graphics Acceleration switched on or off under preferences.

Mog


Top
 Profile  
 
 Post subject: Re: Option Material acceleration of the compiler
Unread postPosted: Sat Feb 18, 2017 10:21 pm 
Offline

Joined: Sat Feb 11, 2017 1:40 am
Posts: 68
Location: France
Thank Mog, for clarifying the point, with a test to evaluate the utility of the option.
It seems to finally depend on the user's phone, if the option will lead to some issues, or not. Rather a parameter to be set by that user; perhaps two versions of the apk?

_________________
Alain


Top
 Profile  
 
 Post subject: Re: Option Material acceleration of the compiler
Unread postPosted: Sun Feb 19, 2017 2:07 am 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1135
Location: From Blighty
We have a discussion here in the forums:-

hardware-acceleration-t3430.html

The problem is I'm nowhere near developer level to fully understand any potential problems with BASIC!

I had a problem on my own phone...Editor based. And joined the discussion here:-

new-update-is-great-and-all-but-brings-some-bugs-t3586.html

These bugs appear to be fixed...

But with my created apps - I can report no known issues on my old device or new one.

Sorry, I can't give a concrete answer!

A very "cat sitting on the fence" answer I'm afraid, but assume all would be okay!

Currently I just develop apps for myself with no market potential.

Mog


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred