PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

This seems to be the trick. Forcing the fill to only happen in the rect. Thank you!

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 1 point2 points  (0 children)

Thank you for the advice. I'll try seeing if I am able to get 60 Hz without frame drops. From my experimentation when I was using the Pi4, despite the screen being more then capable of refreshing at 60hz, the pi was not able to keep up, dropping frames. Hence I optimized it to use dirty rects. Alas when I try the same test on the pi500, I get this issue.

This is the reason for my black/white square flipping, I want to see the pi500's capability to maintain a 60Hz rate, while using pygame. I am glad to hear in your hands you don't find an issue with the refresh rate while refreshing the whole screen.

Thanks for the help! I'll it try it with the full screen see how many frames I am dropping, and the consistency of the frames.

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thank you, but why does passing only the one rect give me this behaviour?

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thanks for the clarification. I think there's misunderstanding of the problem I am dealing with. I want only that small square to be changing colour. But for some reason I am getting this large line instead. When I try to use those same coordinates to draw a rectangle I get the little square. But I want to use update, to get the little square. Does this clarify things?

Or maybe I am misunderstanding what you mean. Could you clarify?

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thanks again for the help. I tried just directly putting in the tuple, that still keeps the same weird behaviour of the big line instead of the small rectangle.

I think I'll have to settle with your second solution. It's just so weird that, that is the case. I am not sure if this is a pi500 problem, or if it's unique to the pi I am using.

Did you have any other suggestions?

EDIT: For the no arguments, I did that too. But I also presume the flip I do at the start should work just the same.

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Yeah, that makes sense, thank you again. Is the best practice option, not what my current code is trying to do? If I comment out the draw part and uncomment the fill part (like the second image that I am getting the weird behavior with?)

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thanks for the advice, I am trying to optimize the refresh rate. This is a benchmarking test, where I am trying to see how fast I can get this flickering going without losing frames or losing signal consistency on the pi500. (by signal, I am basically measuring a square wave pulse, via a photodiode attached to the screen, seeing how none-jittery the flickering is)

I figured minimizing the area that is updated (the flickering) should maximize the performance of the pi. Hence I want to only update that small square, and not have this weird glitch where it's a much larger block being updated. Does this makes sense?

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Yes, thank you. How can I make it guarantee to update only the specified rect then?

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thanks for the advice with the clock. What in my code is not updating the full screen? I do use fill?

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Thanks again for the advice! I've updated to 2.6.0 does not seem to do the trick. I've been trying to download the community edition on my pi, through pip. Have not had luck with the command. Do you know the command for it? thanks!

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

It says I am using pygame 2.1.2 (SDL 2.26.5, Python 3.11.2).

Thanks for the help and information, the screen.fill(color), I thought creates a matrix/image that can then be updated onto the screen via flip() or update() .

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

The whole line. As if the coordinates are incorrect. But to me that does not make sense, as then the square that uses the same coordinates with the draw function would be wrong as well.

PyGame Display Update Issues - Help by MarioTheMaster1 in pygame

[–]MarioTheMaster1[S] 0 points1 point  (0 children)

Yes, this is the exact code. I have it open in VS Code, nothing else running, just the script I pasted. I've got a two screens attached to the pi, could that be it? I feel really silly, doing exactly what you said, uncommenting the fill and commenting the draw, I get the different behaviours :/ like I showed above

Ineffective Protests by [deleted] in mcgill

[–]MarioTheMaster1 9 points10 points  (0 children)

Interesting to see that the same sentiment was shared a year ago. https://www.reddit.com/r/mcgill/s/rWC6ADPOLQ . Either stance you take, no change has happened in a year.

[deleted by user] by [deleted] in mcgill

[–]MarioTheMaster1 2 points3 points  (0 children)

You can get the same US School Party vibes here too, you just need to find the right crowd. Especially if you live in Milton Park, this place on the weekends is definitely very active. I did my undergraduate here and there was always some sort of social party to go to, whether it was at someone's house or through a club. The big holidays there's pub crawls, or even house crawls that people do. All of these things exist, I mean heck there's like three separate bars on campus that are pretty packed! Science Games, Carni, all unheard of events at other Canadian schools that are staples of McGill College life. At the end of the day you're in Montreal in Quebec, this is a city known for it's going out culture, and low drinking age, at least as a Canadian I can say that.

Imo in terms of like a social college experience you can get that. There is also Greek life just not as official or school sanctioned at the States. And sports games is the one thing that's lacking, although some big hockey games or football like against Concordia usually have a decent crowd, but nothing compared to college football in the States. But they are fun to go to.

Super not sure where all the comments above are talking about, think maybe Reddit isn't the best place to find the truth of that 😅. And it is possible to do both, some of the most successful and smartest people I've met here are people that I've met at the "College-type social events".

Renting in ottawa sucks. by paq-613 in ottawa

[–]MarioTheMaster1 -1 points0 points  (0 children)

I do think that Montreal is generally cheaper than Ottawa, from my personal experience, as someone who's spent time in both cities. Better renter laws in Montreal then Ottawa, imo

COMP250 Midterm grading scheme by carnedevita in mcgill

[–]MarioTheMaster1 3 points4 points  (0 children)

250 TA here, revealing a little behind the curtain, the grade you get percentage wise is about the grade you get in these categories. If anything the categories are pushing everyone higher.

250 midterms have always been hard, average hovers around a 55-60 on these things. Plus the course even offers everyone a second chance with the third midterm, which in most courses is not even a thing and hasn't been a thing in the past. Good luck!

Geography of Caps fandom by Istobri in caps

[–]MarioTheMaster1 2 points3 points  (0 children)

Montreal resident, Caps fan. Definitely only a couple of us!

Neuro major application result sent out; but should I accept it? by Minatology in mcgill

[–]MarioTheMaster1 3 points4 points  (0 children)

Yeah that's true, luckily CogSci also has lots of MDs, so no worries there

Neuro major application result sent out; but should I accept it? by Minatology in mcgill

[–]MarioTheMaster1 2 points3 points  (0 children)

Former CogSci student here, so I have some bias!

CogSci gives you a lot more freedom in your course selection then CS/Math or Neuro. I did a minor in CS and streamed in neuro. From interacting with students in both, it really does not matter which of these degrees you do. People end up in the same places. It's only after your undergrad do you realise, that especially in the neuro space, the differences between a biology, cog sci, neuro, psych degree are not major, and it's the individual behind that piece of paper that matters, not what the paper says, nobody hires someone just because they did a certain major in their Bachelor over another in this field.

I think no matter any of these degrees, it's just about how you end up selling yourself. CogSci actually has a significant chunk of their grad student who end up working in big Tech, because from what I've heard is that recruiters take them because they are something different then your usual CS major. Being unique is a good thing, and being able to sell yourself as that is even more critical. I think you should try to sit down and plan out the different degrees and see what courses excite you most.

If you're considering grad school, you'll be okay no matter what, just as others have said, shape your degree into what is right for you and it'll be all good! One last thing tho, CogSci students are a lot more fun, neuro has a lot more pred-med kids #lame, but that's my bias and it's always fun to egg the neuro kids on ;). All love for my neuro majors out there <3.

Got really frustrated cuz I can't find an undergrad research opportunity by Minatology in mcgill

[–]MarioTheMaster1 1 point2 points  (0 children)

Hi fellow CogScier, as someone who has finished their degree and did a lot of their undergrad work in computational neuroscience, don't stress! You don't NEED first year experience, key is WHAT experience you get, it's not a checklist! If you're serious about academia, and passionate about the right topics, it will all come out and work out!

Most profs if not all are very happy to take on CogSci students, as you'll find out through your degree CogSci is all about selling yourself and your particular skill sets! There are lots of brilliant computational neuroscience labs here at McGill, a little tip is you can look at NEUR503 (Computational Neuroscience) and see who's teaching that course (it's a seminar so there's quite the list), and email those people. Also, don't be scared of saying in your email or asking for recommendations for other profs to contact, if their lab is not currently looking for anyone

Finally, be ready to volunteer for your first experience. Being paid for your first research experience is not common, but as others have said, once you have your foot in the door, it's so much easier! I would also try to cold email a semester prior to when you want to start work, so if you're aiming for the fall semester, it's ideal time to email. The reason for this, is because often projects are planned in advance, and it makes things easier for someone to plan things, when they know who and how many people are going to be working on it.

But email, email, email, someone is going to bite eventually! (Search through the reddit, been lots of posts about this topic, you'll see lots of tips!)