Removed random repaint() calls everywhere to reduce strain on GPU. Added

key unicode character back in of Rabi-Race module.
dev
sigonasr2 7 years ago
parent 5c6d6346a6
commit 340e46ac37
  1. BIN
      sigIRCv2.jar
  2. 6
      src/sig/Module.java
  3. 4
      src/sig/MyPanel.java
  4. 4
      src/sig/ScrollingText.java
  5. 4
      src/sig/TwitchEmote.java
  6. 1
      src/sig/UpdateEvent.java
  7. 4
      src/sig/modules/ChatLog/ChatLogMessage.java

Binary file not shown.

@ -105,7 +105,7 @@ public class Module {
private void dragWindow() { private void dragWindow() {
if (dragging) { if (dragging) {
sigIRC.panel.repaint(getDrawBounds().getBounds()); //sigIRC.panel.repaint(getDrawBounds().getBounds());
int mouseX = sigIRC.panel.lastMouseX+(int)dragOffset.getX(); int mouseX = sigIRC.panel.lastMouseX+(int)dragOffset.getX();
int mouseY = sigIRC.panel.lastMouseY+(int)dragOffset.getY(); int mouseY = sigIRC.panel.lastMouseY+(int)dragOffset.getY();
int oldX = (int)position.getX(); int oldX = (int)position.getX();
@ -133,11 +133,11 @@ public class Module {
public void draw(Graphics g) { public void draw(Graphics g) {
drawModuleHeader(g); drawModuleHeader(g);
SwingUtilities.invokeLater(new Runnable() { /*SwingUtilities.invokeLater(new Runnable() {
public void run() { public void run() {
sigIRC.panel.repaint(getDrawBounds().getBounds()); sigIRC.panel.repaint(getDrawBounds().getBounds());
} }
}); });*/
} }
private void drawModuleHeader(Graphics g) { private void drawModuleHeader(Graphics g) {

@ -200,8 +200,8 @@ public class MyPanel extends JPanel implements MouseListener, ActionListener, Mo
sigIRC.config.setInteger("windowHeight", sigIRC.windowHeight); sigIRC.config.setInteger("windowHeight", sigIRC.windowHeight);
sigIRC.button.x = sigIRC.panel.getX()+sigIRC.panel.getWidth()-96; sigIRC.button.x = sigIRC.panel.getX()+sigIRC.panel.getWidth()-96;
sigIRC.button.y = 64+sigIRC.rowobj.size()*sigIRC.rowSpacing; sigIRC.button.y = 64+sigIRC.rowobj.size()*sigIRC.rowSpacing;
com.repaint(); //com.repaint();
sigIRC.panel.repaint(); //sigIRC.panel.repaint();
sigIRC.config.saveProperties(); sigIRC.config.saveProperties();
} }

@ -146,7 +146,7 @@ public class ScrollingText {
public boolean run() { public boolean run() {
x-=myRow.getScrollSpd(); x-=myRow.getScrollSpd();
//System.out.println("X: "+x); //System.out.println("X: "+x);
SwingUtilities.invokeLater(new Runnable() { /*SwingUtilities.invokeLater(new Runnable() {
public void run() { public void run() {
sigIRC.panel.repaint( sigIRC.panel.repaint(
FindLeftMostCornerInDisplay(), FindLeftMostCornerInDisplay(),
@ -154,7 +154,7 @@ public class ScrollingText {
(int)Math.max(FindRightMostCornerInDisplay(),(int)TextUtils.calculateStringBoundsFont(username, MyPanel.userFont).getWidth())+4, (int)Math.max(FindRightMostCornerInDisplay(),(int)TextUtils.calculateStringBoundsFont(username, MyPanel.userFont).getWidth())+4,
FindBottomMostCornerInDisplay()+(stringHeight*2)+4); FindBottomMostCornerInDisplay()+(stringHeight*2)+4);
} }
}); });*/
//sigIRC.panel.repaint(); //sigIRC.panel.repaint();
if (x+stringWidth<0) { if (x+stringWidth<0) {
isAlive=false; isAlive=false;

@ -19,7 +19,7 @@ public class TwitchEmote {
public boolean run() { public boolean run() {
//this.x-=paint.TEXTSCROLLSPD; //this.x-=paint.TEXTSCROLLSPD;
SwingUtilities.invokeLater(new Runnable() { /*SwingUtilities.invokeLater(new Runnable() {
public void run() { public void run() {
sigIRC.panel.repaint( sigIRC.panel.repaint(
Math.max(x,0), Math.max(x,0),
@ -27,7 +27,7 @@ public class TwitchEmote {
Math.min(sigIRC.panel.getWidth()-x,emote.getImage().getWidth()), Math.min(sigIRC.panel.getWidth()-x,emote.getImage().getWidth()),
Math.min(sigIRC.panel.getHeight()-y,emote.getImage().getHeight())); Math.min(sigIRC.panel.getHeight()-y,emote.getImage().getHeight()));
} }
}); });*/
if (x+emote.getImage().getWidth()<0 || text==null || !text.isActive()) { if (x+emote.getImage().getWidth()<0 || text==null || !text.isActive()) {
active=false; active=false;
return false; return false;

@ -184,6 +184,7 @@ public class UpdateEvent implements ActionListener{
sigIRC.chatlogtwitchemoticons.remove(i--); sigIRC.chatlogtwitchemoticons.remove(i--);
} }
} }
sigIRC.panel.repaint();
} }
private void ProcessTextRows() { private void ProcessTextRows() {

@ -195,7 +195,7 @@ public class ChatLogMessage {
} }
public boolean run() { public boolean run() {
SwingUtilities.invokeLater(new Runnable() { /*SwingUtilities.invokeLater(new Runnable() {
public void run() { public void run() {
sigIRC.panel.repaint( sigIRC.panel.repaint(
(int)Math.max(refModule.getPosition().getX()+position.getX(),0), (int)Math.max(refModule.getPosition().getX()+position.getX(),0),
@ -203,7 +203,7 @@ public class ChatLogMessage {
(int)Math.min(sigIRC.panel.getWidth()-(refModule.getPosition().getX()+position.getX()+messageDisplaySize.getX()),messageDisplaySize.getX()), (int)Math.min(sigIRC.panel.getWidth()-(refModule.getPosition().getX()+position.getX()+messageDisplaySize.getX()),messageDisplaySize.getX()),
(int)Math.min(sigIRC.panel.getHeight()-(refModule.getPosition().getY()+position.getY()+messageDisplaySize.getY()),messageDisplaySize.getY())); (int)Math.min(sigIRC.panel.getHeight()-(refModule.getPosition().getY()+position.getY()+messageDisplaySize.getY()),messageDisplaySize.getY()));
} }
}); });*/
//System.out.println(refModule.getPosition()+","+position); //System.out.println(refModule.getPosition()+","+position);
return true; return true;
} }

Loading…
Cancel
Save