AnsweredAssumed Answered

Speed Boost The Code of All AMD Drivers

Question asked by calvinvalerian on Sep 19, 2016
Latest reply on Sep 22, 2016 by lewisgdljr@gmail.com

When it comes to the source code what we want is a readable functioning program.

 

But readability is no longer a priority when it comes to gaming.

 

I want to introduce my method to push the speed of graphics driver a little bit further.

 

Here's how:

Duplicate AMD driver source code to a new location.

 

Create a new program that replaces every variable in all duplicated source to a consecutive alphabetical order.

 

Therefore no modification is made in the original source code and that's where you're going to compile the program.

 

I recommend to first capitalize all variables (e.g: "varName" to "VARNAME") so that it is easier to match this pattern.

 

I only code in bash script and I hope you understand what I'm trying to convey so here's my sample code:

 

# BEFORE SIMPLIFICATION PROCESS

#!/bin/bash

FIRSTNAME=Steve

LASTNAME=Jobs

 

for X in $FIRSTNAME $LASTNAME" do

     echo $X

done

 

# WHAT TO DO

We're going to replace a total of 3 variables to alphabet consecutively starting from "a": a b c.

FIRSTNAME > a

LASTNAME > b

X > c

 

# AFTER SIMPLIFICATION PROCESS

#!/bin/bash

a=Steve

b=Jobs

 

for c in $a $b; do

     echo $c

done

 

The reason I prefer alphabet more than digit is because alphabet comprise of 26 characters before it adds new character length whereas digit is only 10, hence more efficient than digits.

 

When a - z is used up, increase the character length to "aa", "aaa" and so on so forth.

Outcomes