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
  8. 2
      src/sig/modules/RabiRace/SessionCreateWindow.java

Binary file not shown.

@ -105,7 +105,7 @@ public class Module {
private void dragWindow() {
if (dragging) {
sigIRC.panel.repaint(getDrawBounds().getBounds());
//sigIRC.panel.repaint(getDrawBounds().getBounds());
int mouseX = sigIRC.panel.lastMouseX+(int)dragOffset.getX();
int mouseY = sigIRC.panel.lastMouseY+(int)dragOffset.getY();
int oldX = (int)position.getX();
@ -133,11 +133,11 @@ public class Module {
public void draw(Graphics g) {
drawModuleHeader(g);
SwingUtilities.invokeLater(new Runnable() {
/*SwingUtilities.invokeLater(new Runnable() {
public void run() {
sigIRC.panel.repaint(getDrawBounds().getBounds());
}
});
});*/
}
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.button.x = sigIRC.panel.getX()+sigIRC.panel.getWidth()-96;
sigIRC.button.y = 64+sigIRC.rowobj.size()*sigIRC.rowSpacing;
com.repaint();
sigIRC.panel.repaint();
//com.repaint();
//sigIRC.panel.repaint();
sigIRC.config.saveProperties();
}

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

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

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

@ -195,7 +195,7 @@ public class ChatLogMessage {
}
public boolean run() {
SwingUtilities.invokeLater(new Runnable() {
/*SwingUtilities.invokeLater(new Runnable() {
public void run() {
sigIRC.panel.repaint(
(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.getHeight()-(refModule.getPosition().getY()+position.getY()+messageDisplaySize.getY()),messageDisplaySize.getY()));
}
});
});*/
//System.out.println(refModule.getPosition()+","+position);
return true;
}

@ -68,7 +68,7 @@ public class SessionCreateWindow extends JFrame{
playerpanel.add(playerLabel);
playerpanel.add(maxplayers);
JLabel passwordLabel = new JLabel("🔑 Password (Optional): ");
JLabel passwordLabel = new JLabel("🔑 Password (Optional): ");
playerpanel.add(passwordLabel);
playerpanel.add(pass);

Loading…
Cancel
Save