Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Java][Game developing] Rendering problem

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
vctt
Posts: 5
Joined: 2014-10-17 15:30

[Java][Game developing] Rendering problem

#1 Post by vctt »

Hello, I'm developing games in java, but when i compile the application in netbeans my computer got really, really slow and sometimes I have to restart it.

It is a simples render code with only this:

Code: Select all

public void render() {
33	        Graphics2D g = (Graphics2D) bufferStrategy.getDrawGraphics();
34	        g.setColor(Color.black);
35	        g.fillRect(0, 0, mainWindow.getWidth(), mainWindow.getHeight());
36	        onRender(g);
37	        g.dispose();
38	        bufferStrategy.show();
39	    }
and an abstract method onrender drawing a red circle.

When I type top on terminal my xorg is with 100% of cpu usage and a Java application too.

when I type lspci -nn | grep VGA
it shows me

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Thames [Radeon 7500M/7600M Series] [1002:6841]

I already installed the ATI drivers but did not solve the problem.

Someone can help me?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [Java][Game developing] Rendering problem

#2 Post by Head_on_a_Stick »

I can't code to save my life so I can only offer advice about system configuration.

How did you install the ATI drivers?

Are you using the open-source or proprietary versions?

The open-source drivers will offer more stability, the proprietary drivers will offer more performance.
http://www.x.org/wiki/RadeonFeature/

Open-source driver instructions:
https://wiki.debian.org/AtiHowTo

Proprietary driver instructions:
https://wiki.debian.org/ATIProprietary

I think this may be complicated by the dual-card setup, but I have never used a machine with such capabilities so I'm not sure.
Be sure to configure your xorg.conf file so your system uses the correct card.
You may be able to use the xorg.conf listed on this page (with the correct bus IDs) under "Step 3", but do not attempt to add PPAs to your system (see my sig.):
http://xpressrazor.wordpress.com/2013/0 ... ux-ubuntu/

Under Arch, I would advise using PRIME.
A little searching seems to suggest BIONIC as a Debian-based alternative:
https://www.primegrid.com/forum_thread.php?id=5613
https://wiki.debian.org/BOINC
But I may be barking up the wrong tree here...

You can check which drivers are loaded by running `lspci -k`
deadbang

Post Reply