Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
65 I discovered I can lag minecraft out by using sound.
For some reason other players don't experience this lag though
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
67 Probably because the code that's calling the playSoud methods only runs clientside, so only your client gets lagged.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
68 I meant that other players nearby don't notice anything even though they hear the sound.
It is also not a small drop for me its from 30/40 fps to 0
so..either its OS related or java related or something else....
the log also doesn't tell that much (read: it doesn't log anything that it isn't supposed to log)
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
70 so...anyone an idea how to diagnose the problem in a sensible way?
I could try the pack in windows but that changes a lot. (OS+java). I could try openjdk7 instead of 8 but I doubt that would help (especially as I know that other users who use windows don't have this problem). As it is specific to sound and windows pc's don't seem to have it I think it has something to do with how Linux process sound which would make it a potential nightmare to debug.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
71 Insert a bunch of lines in your code here and there that log the system time to a lot of significant figures, so you can see where the slow code is happening.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
72 its....not my code...
I use the speaker from immibis peripherals (2 to be precise)together with some code that generates output.
I can't find teh program I used to create sound anymore, but it appears that someone made it possible to listen to .ogg files :p

edit: I was a derp, it is accutally .org files and the program is old and thus doesn't work anymore. I did manage to find something else that might cause the lag: the speed of the connection to the server where a better connection causes more lagg due to more musical notes going to the client, this is pure speculation though.

To test this I need something to bottle neck my connection with the server, any ideas :p
 
Last edited:

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
73 Ok, so you're talking about two different problems you have with mods written by other people in two different threads. I get it now.

Yeah, I dunno. If it's opensource, you could download the source and figure it out that way.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
74 read my edit, I might have found a reason why it laggs for me and not for others